]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: document another racy GC case in xfs_zoned_map_extent
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Oct 2025 15:17:03 +0000 (17:17 +0200)
committerCarlos Maiolino <cem@kernel.org>
Fri, 31 Oct 2025 11:06:03 +0000 (12:06 +0100)
commit0db22d7ee462c42c1284e98d47840932792c1adb
treefe37b798ef67300c30521a5a69e1172b532ba675
parent83bac569c762651ac6dff9a86f54ecc13d911f7d
xfs: document another racy GC case in xfs_zoned_map_extent

Besides blocks being invalidated, there is another case when the original
mapping could have changed between querying the rmap for GC and calling
xfs_zoned_map_extent.  Document it there as it took us quite some time
to figure out what is going on while developing the multiple-GC
protection fix.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_alloc.c