diff options
| author | 2026-09-08 17:57:43 +0900 | |
|---|---|---|
| committer | 2026-09-15 06:53:06 -0600 | |
| commit | 0687c9c346ac8c22ebbf875c5caadca83cd60881 (patch) | |
| tree | 4cfb7b2ba14e750623195cd8e380dd8820d45e02 /scripts/Makefile.thinlto | |
| parent | block: always treat offline and read-only zones as dead (diff) | |
block: fail zone management operations to read-only and offline zones
Any zone management operation targeting a zone that is in the read-only
or offline condition will fail. So there is no point in issuing such
BIO. Modify the check in submit_bio_noacct() to use the new helper
function bdev_zone_mgmt_allowed() to check that a zone is sequential (as
was checked before) and also that the zone is not offline nor read-only.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://patch.msgid.link/20260908085745.1082697-15-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
