]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbec278f120b3bbe091f0e452455cf2770278b52a
tree0c4ca719ee4faab6b8599fc5b16812ef9c04eb2d
parent168d882304c88a321000ee89e81a16799367c1d9
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