Skip to content

Commit 62c774e

Browse files
committed
io_uring: don't unconditionally set plug->nowait = true
This causes all the bios to be submitted with REQ_NOWAIT, which can be problematic on either btrfs or on file systems that otherwise use a mix of block devices where only some of them support it. For now, just remove the setting of plug->nowait = true. Reported-by: Dan Melnic <[email protected]> Reported-by: Brian Foster <[email protected]> Fixes: b63534c ("io_uring: re-issue block requests that failed because of resources") Signed-off-by: Jens Axboe <[email protected]>
1 parent f3cd485 commit 62c774e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/io_uring.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6353,9 +6353,6 @@ static void io_submit_state_start(struct io_submit_state *state,
63536353
struct io_ring_ctx *ctx, unsigned int max_ios)
63546354
{
63556355
blk_start_plug(&state->plug);
6356-
#ifdef CONFIG_BLOCK
6357-
state->plug.nowait = true;
6358-
#endif
63596356
state->comp.nr = 0;
63606357
INIT_LIST_HEAD(&state->comp.list);
63616358
state->comp.ctx = ctx;

0 commit comments

Comments
 (0)