io_uring: split logic of force_nonblock
authorHao Xu <haoxu@linux.alibaba.com>
Mon, 18 Oct 2021 13:34:31 +0000 (21:34 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Oct 2021 00:21:42 +0000 (18:21 -0600)
commit3b44b3712c5b19b0af11c25cd978abdc3680d5e7
tree0c4ca719ee4faab6b8599fc5b16812ef9c04eb2d
parent00169246e6981752e53266c62d0ab0c827493634
io_uring: split logic of force_nonblock

Currently force_nonblock stands for three meanings:
 - nowait or not
 - in an io-worker or not(hold uring_lock or not)

Let's split the logic to two flags, IO_URING_F_NONBLOCK and
IO_URING_F_UNLOCKED for convenience of the next patch.

Suggested-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20211018133431.103298-1-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c