]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: add a separate bio_set for spliting GC writes
authorChristoph Hellwig <hch@lst.de>
Wed, 29 Jul 2026 13:02:48 +0000 (15:02 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 3 Aug 2026 08:24:02 +0000 (10:24 +0200)
commit63de19199342e2598373cbb99186fa93e9116603
treeeb8f8ca4d7ed0975e4f08c51004cab9fc9135749
parente2b4a856085e9bd939bde2dee0d08b1d41babde9
xfs: add a separate bio_set for spliting GC writes

Allocating the new bio for a split from the same pool as the original
one can deadlock under memory pressure as the origin bio could be the
last one from the mempool.

Add a separate pool for splitting GC write bios to avoid this.

Fixes: 080d01c41d44 ("xfs: implement zoned garbage collection")
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: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_gc.c