diff options
author | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2025-03-17 14:24:59 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:57 +0300 |
commit | 35fec1089ebb5617f85884d3fa6a699ce6337a75 (patch) | |
tree | 2398dc027c6d1dda28bbb91128012114f0a67473 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 2bbc4a45e5eb6b868357c1045bf6f38f6ba576e0 (diff) | |
download | linux-35fec1089ebb5617f85884d3fa6a699ce6337a75.tar.xz |
btrfs: zoned: fix zone finishing with missing devices
If do_zone_finish() is called with a filesystem that has missing devices
(e.g. a RAID file system mounted in degraded mode) it is accessing the
btrfs_device::zone_info pointer, which will not be set if the device
in question is missing.
Check if the device is present (by checking if it has a valid block device
pointer associated) and if not, skip zone finishing for it.
Fixes: 4dcbb8ab31c1 ("btrfs: zoned: make zone finishing multi stripe capable")
CC: stable@vger.kernel.org # 6.1+
Reviewed-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions