Re: [PATCH v2 10/13] block: fail zone management operations to read-only and offline zones

Hannes Reinecke <[email protected]> Fri, 7 Aug 2026 13:42:28 +0200
Newsgroups org.kernel.vger.linux-block
Message-ID <[email protected]>
On 8/6/26 6:04 PM, Damien Le Moal wrote:
> 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_check_zone_mgmt() 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 <[email protected]>
> ---
>   block/blk-core.c  |  7 +++++--
>   block/blk-zoned.c | 24 ++++++++++++++++++++++++
>   block/blk.h       |  6 ++++++
>   3 files changed, 35 insertions(+), 2 deletions(-)
> 
Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
[email protected]                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich