diff options
| author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2026-09-10 14:19:39 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-11-09 18:50:57 +0100 |
| commit | c5f878eefdd4f559422a68bf49b6f59e7c10e70e (patch) | |
| tree | bf5bea8df3b5b2172164f27d09043c5c08248cd6 /tools/perf/scripts/python | |
| parent | 8ca411c7ad2c02ae65ae208a3f7483d6e0159c4f (diff) | |
btrfs: zoned: requeue block group if zone reset bails out
btrfs_reset_unused_block_groups() drops the block-group from
fs_info->unused_bgs before performing the work that can actually fail,
the actual submission of a REQ_OP_ZONE_RESET.
Every failed operation after this leaves the block-group dangling,
physically reset, but the in-memory structures aren't and it is not
requeued to be reset on fs_info->unused_bgs.
Instead of bailing out, re-add this block-group to fs_info->unused_bgs
list.
Fixes: 453a73c3069a ("btrfs: zoned: reclaim unused zone by zone resetting")
Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
