]> www.infradead.org Git - users/hch/xfs.git/commit
iomap: optionally use ioends for direct I/O
authorChristoph Hellwig <hch@lst.de>
Fri, 24 Nov 2023 09:45:35 +0000 (10:45 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 10 Sep 2024 05:05:33 +0000 (08:05 +0300)
commit9851a391679dfebff8e8ca09e2661d78af49a533
tree7e7f89527d7140f8b1f7ef613ece00d1757ff416
parent308e5da5f0194c22ddfc21be4af1ba38dd1c31dd
iomap: optionally use ioends for direct I/O

struct iomap_ioend currently tracks outstanding buffered writes and has
some really nice code in core iomap and XFS to merge contiguous I/Os
an defer them to userspace for completion in a very efficient way.

For zoned writes we'll also need a per-bio user context completion to
record the written blocks, and the infrastructure for that would look
basically like the ioend handling for buffered I/O.

So intead of reinventing the wheel, reuse the existing infrastructure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/iomap/buffered-io.c
fs/iomap/direct-io.c
fs/iomap/internal.h [new file with mode: 0644]
include/linux/iomap.h