summaryrefslogtreecommitdiffstats
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2019-10-04 17:01:08 +0300
committerJens Axboe <axboe@kernel.dk>2019-10-04 08:31:15 -0600
commitbf7ec93c644cb0064ba7d2fc40d4841c5ba382ab (patch)
tree40f46694b70fe10f19711c052d25ea686ec682e7 /fs/io_uring.c
parenta9eb49c964884654dd6394cb6abe7ceb021c9c96 (diff)
downloadlinux-bf7ec93c644cb0064ba7d2fc40d4841c5ba382ab.tar.bz2
io_uring: fix reversed nonblock flag for link submission
io_queue_link_head() accepts @force_nonblock flag, but io_ring_submit() passes something opposite. Fixes: c576666863b78 ("io_uring: optimize submit_and_wait API") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 0bc167aca46d..ab8c4e5e442c 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2761,7 +2761,7 @@ out:
if (link)
io_queue_link_head(ctx, link, &link->submit, shadow_req,
- block_for_last);
+ !block_for_last);
if (statep)
io_submit_state_end(statep);