io_uring: fix reversed nonblock flag for link submission
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 4 Oct 2019 14:01:08 +0000 (17:01 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Oct 2019 14:31:15 +0000 (08:31 -0600)
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>
fs/io_uring.c

index 0bc167aca46d245df5abe85de40522ca4da06e7c..ab8c4e5e442c2cd33478a3420e403e6dc23f2303 100644 (file)
@@ -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);