diff options
| author | Christoph Hellwig <[email protected]> | 2025-10-23 15:17:02 +0000 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-10-31 11:06:03 +0000 |
| commit | 83bac569c762651ac6dff9a86f54ecc13d911f7d (patch) | |
| tree | 7e0047a7af06091ab8298ca56dafdc86bbd9dcaf /lib/mpi/mpi-mod.c | |
| parent | xfs: fix locking in xchk_nlinks_collect_dir (diff) | |
| download | kernel-83bac569c762651ac6dff9a86f54ecc13d911f7d.tar.gz kernel-83bac569c762651ac6dff9a86f54ecc13d911f7d.zip | |
xfs: prevent gc from picking the same zone twice
When we are picking a zone for gc it might already be in the pipeline
which can lead to us moving the same data twice resulting in in write
amplification and a very unfortunate case where we keep on garbage
collecting the zone we just filled with migrated data stopping all
forward progress.
Fix this by introducing a count of on-going GC operations on a zone, and
skip any zone with ongoing GC when picking a new victim.
Fixes: 080d01c41 ("xfs: implement zoned garbage collection")
Signed-off-by: Hans Holmberg <[email protected]>
Co-developed-by: Hans Holmberg <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: Carlos Maiolino <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Tested-by: Damien Le Moal <[email protected]>
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions
