Re: [PATCH v2 1/2] btrfs: zoned: sanity check zone type
From: David Sterba <hidden>
Date: 2021-05-05 22:32:53
From: David Sterba <hidden>
Date: 2021-05-05 22:32:53
On Tue, May 04, 2021 at 10:30:23AM +0200, Johannes Thumshirn wrote:
+ if (zone.type == BLK_ZONE_TYPE_CONVENTIONAL) {
+ btrfs_err(fs_info,
+ "zoned: unexpected conventional zone: %llu on device %s (devid %llu)",Message looks in line with others in zoned.c, I just noticed that this also requires the rcu wrapper, ie. btrfs_err_in_rcu becausse rcu_str_deref would complain.
+ zone.start << SECTOR_SHIFT,
+ rcu_str_deref(device->name), device->devid);
+ ret = -EIO;
+ goto out;
+ }
+
switch (zone.cond) {
case BLK_ZONE_COND_OFFLINE:
case BLK_ZONE_COND_READONLY:
--
2.31.1