|
@@ -226,7 +226,8 @@ int FASTCALL(io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
|
|
__put_ioctx(kioctx); \
|
|
__put_ioctx(kioctx); \
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|
|
-#define in_aio() !is_sync_wait(current->io_wait)
|
|
|
|
|
|
+#define in_aio() (unlikely(!is_sync_wait(current->io_wait)))
|
|
|
|
+
|
|
/* may be used for debugging */
|
|
/* may be used for debugging */
|
|
#define warn_if_async() \
|
|
#define warn_if_async() \
|
|
do { \
|
|
do { \
|