From: Pavel Begunkov Date: Fri, 4 Oct 2019 14:01:08 +0000 (+0300) Subject: io_uring: fix reversed nonblock flag for link submission X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bf7ec93c644cb;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe --- 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);