public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH 1/1] iomap: propagate nowait to block layer
@ 2025-02-26  1:33 Pavel Begunkov
  2025-02-26  1:53 ` Darrick J. Wong
  2025-02-26  4:52 ` Dave Chinner
  0 siblings, 2 replies; 9+ messages in thread
From: Pavel Begunkov @ 2025-02-26  1:33 UTC (permalink / raw)
  To: io-uring, Christian Brauner, linux-fsdevel
  Cc: asml.silence, Darrick J . Wong, linux-xfs, wu lei

There are reports of high io_uring submission latency for ext4 and xfs,
which is due to iomap not propagating nowait flag to the block layer
resulting in waiting for IO during tag allocation.

Cc: [email protected]
Link: https://github.com/axboe/liburing/issues/826#issuecomment-2674131870
Reported-by: wu lei <[email protected]>
Signed-off-by: Pavel Begunkov <[email protected]>
---
 fs/iomap/direct-io.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c
index b521eb15759e..25c5e87dbd94 100644
--- a/fs/iomap/direct-io.c
+++ b/fs/iomap/direct-io.c
@@ -81,6 +81,9 @@ static void iomap_dio_submit_bio(const struct iomap_iter *iter,
 		WRITE_ONCE(iocb->private, bio);
 	}
 
+	if (iocb->ki_flags & IOCB_NOWAIT)
+		bio->bi_opf |= REQ_NOWAIT;
+
 	if (dio->dops && dio->dops->submit_io)
 		dio->dops->submit_io(iter, bio, pos);
 	else
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-27 11:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26  1:33 [PATCH 1/1] iomap: propagate nowait to block layer Pavel Begunkov
2025-02-26  1:53 ` Darrick J. Wong
2025-02-26  2:06   ` Pavel Begunkov
2025-02-26  2:20     ` Darrick J. Wong
2025-02-26  2:46       ` Pavel Begunkov
2025-02-26  4:52 ` Dave Chinner
2025-02-26 12:33   ` Pavel Begunkov
2025-02-26 20:49     ` Dave Chinner
2025-02-27 11:58       ` Pavel Begunkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox