Skip to content

Commit bf7ec93

Browse files
isilenceaxboe
authored andcommitted
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: c576666 ("io_uring: optimize submit_and_wait API") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent a9eb49c commit bf7ec93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2761,7 +2761,7 @@ static int io_ring_submit(struct io_ring_ctx *ctx, unsigned int to_submit,
27612761

27622762
if (link)
27632763
io_queue_link_head(ctx, link, &link->submit, shadow_req,
2764-
block_for_last);
2764+
!block_for_last);
27652765
if (statep)
27662766
io_submit_state_end(statep);
27672767

0 commit comments

Comments
 (0)