]> www.infradead.org Git - users/hch/xfs.git/commit
iomap: optionally use ioends for direct I/O
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Nov 2024 08:14:33 +0000 (09:14 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 5 Nov 2024 08:26:40 +0000 (09:26 +0100)
commit42b0a7dcef6983766567d0c010a2c88db6d1091c
tree4beabd72842379d495df79bb8a2a3ea680dfb2b8
parent983f1e17ab3ff33d780679eeec8939149d9b2ad5
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/ioend.c
include/linux/iomap.h