]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: support ioends for direct reads
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jan 2026 05:53:44 +0000 (06:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jan 2026 12:16:40 +0000 (05:16 -0700)
commitd969bd72cf6835a4c915b326feb92c7597a46d98
tree53724d2416783faceb8fea93896897fa38b99d60
parentc96b8b220271024c04289d6d9779dc2ccbd12be2
iomap: support ioends for direct reads

Support using the ioend structure to defer I/O completion for direct
reads in addition to writes.  This requires a check for the operation
to not merge reads and writes in iomap_ioend_can_merge.  This support
will be used for bounce buffered direct I/O reads that need to copy
data back to the user address space on read completion.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap/ioend.c