linux/fs/iomap
Christoph Hellwig 769a8a732e iomap: fix submission side handling of completion side errors
[ Upstream commit 4ad357e39b ]

The "if (dio->error)" in iomap_dio_bio_iter exists to stop submitting
more bios when a completion already return an error.  Commit cfe057f7db
("iomap_dio_actor(): fix iov_iter bugs") made it revert the iov by
"copied", which is very wrong given that we've already consumed that
range and submitted a bio for it.

Fixes: cfe057f7db ("iomap_dio_actor(): fix iov_iter bugs")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-02-26 14:59:00 -08:00
..
buffered-io.c iomap: account for unaligned end offsets when truncating read range 2026-01-02 12:56:38 +01:00
direct-io.c iomap: fix submission side handling of completion side errors 2026-02-26 14:59:00 -08:00
fiemap.c iomap: header diet 2025-07-14 10:51:31 +02:00
internal.h iomap: move all ioend handling to ioend.c 2025-07-14 10:51:32 +02:00
ioend.c iomap: move all ioend handling to ioend.c 2025-07-14 10:51:32 +02:00
iter.c iomap: header diet 2025-07-14 10:51:31 +02:00
Makefile iomap: build the writeback code without CONFIG_BLOCK 2025-07-14 10:51:33 +02:00
seek.c iomap: header diet 2025-07-14 10:51:31 +02:00
swapfile.c iomap: header diet 2025-07-14 10:51:31 +02:00
trace.c iomap: header diet 2025-07-14 10:51:31 +02:00
trace.h iomap: trace iomap_zero_iter zeroing activities 2025-09-19 14:17:11 +02:00