[PATCH] io_uring: Fix reversed nonblock flag
From: Pavel Begunkov (Silence)
Date: Fri Oct 04 2019 - 04:25:29 EST
From: Pavel Begunkov <asml.silence@xxxxxxxxx>
io_queue_link_head() accepts @force_nonblock flag, but io_ring_submit()
passes something opposite.
Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx>
---
fs/io_uring.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/io_uring.c b/fs/io_uring.c
index c934f91c51e9..ffe66512ca07 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2761,7 +2761,7 @@ static int io_ring_submit(struct io_ring_ctx *ctx, unsigned int to_submit,
if (link)
io_queue_link_head(ctx, link, &link->submit, shadow_req,
- block_for_last);
+ force_nonblock);
if (statep)
io_submit_state_end(statep);
--
2.23.0