]> git.ipfire.org Git - thirdparty/linux.git/commit
iomap: consolidate bio submission
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jun 2026 12:17:38 +0000 (14:17 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 1 Jul 2026 13:26:47 +0000 (15:26 +0200)
commit044472d5ee7d71f918fa3f61bd65e4933a0c006e
treece4a397897813894ed021efcc7b46cec7a9dc19b
parent6c732471740bc2ac9b0946134f9f551dc75f4369
iomap: consolidate bio submission

Add a iomap_bio_submit_read_endio helper factored out of
iomap_bio_submit_read to that all ->submit_read implementations for
iomap_read_ops that use iomap_bio_read_folio_range can shared the
logic.

Right now that logic is mostly trivial, but already has a bug for XFS
because the XFS version is too trivial:  file system integrity validation
needs a workqueue context and thus can't happen from the default iomap
bi_end_io I/O handler.  Unfortunately the iomap refactoring just before
fs integrity landed moved code around here and the call go misplaced,
meaning it never got called.  The PI information still is verified by
the block layer, but the offloading is less efficient (and the future
userspace interface can't get at it).

Fixes: 0b10a370529c ("iomap: support T10 protection information")
Cc: stable@vger.kernel.org # v7.1
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260629121750.3392300-2-hch@lst.de
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/exfat/iomap.c
fs/iomap/bio.c
fs/ntfs/aops.c
fs/ntfs3/inode.c
fs/xfs/xfs_aops.c
include/linux/iomap.h