]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: don't merge ioends across RTGs
authorDarrick J. Wong <djwong@kernel.org>
Mon, 25 Nov 2024 21:14:24 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:30 +0000 (18:01 -0800)
commit5b4cdd7bae76979e36ce4751641a407cb08a19bd
tree73b42ddc6956f941e2da5a7e9dfaf26237a4b8f0
parentf95f8a062de9c4c13817541d8ae0fd09ba0d331f
xfs: don't merge ioends across RTGs

Source kernel commit: b91afef724710e3dc7d65a28105ffd7a4e861d69

Unlike AGs, RTGs don't always have metadata in their first blocks, and
thus we don't get automatic protection from merging I/O completions
across RTG boundaries.  Add code to set the IOMAP_F_BOUNDARY flag for
ioends that start at the first block of a RTG so that they never get
merged into the previous ioend.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_rtgroup.h