From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BC433DE438; Tue, 4 Aug 2026 12:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785847885; cv=none; b=EDOxdT7GaSrEk8gZXdp1SwnU1uvpHeZ2pVBAlIvhuBe6OyJ3V3U43aTaA0ZsoQpEDHnX+hjEKFf8KgH71ux3A1yPYcXj9h/JC+UiO5ldesfrXuJ10ddN+Fb3lFc6tnjr1q8EP/G5xYg4xblr+cubsHX+XHw5Tw3hyeiJAg/p5DI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785847885; c=relaxed/simple; bh=I9wQmfR9VNRWcYR3FWsA4WEU7pw7XMCcm5sJv8gbFHc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qtGPVCgSBYpAgtt7aJf6wVgt4tHQqf4uCiZHEXMRzZa4L5RCRGew8MnHl2I+ZnrquX37tOLSpy8nGLjylGfv87hHe/zHLSQJfU/vCZZLX8KGcxGTE7LUg/cQ+ATikDSrUmmSCidgIO7fZgGjiF92Xd6VsJ7YJrjC/081z1gwMsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=NG9C+jgk; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NG9C+jgk" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=zhVqc8NbHLEaCNNKfx2NjOUTIPjwNlOsXv0U3KJgtVA=; b=NG9C+jgkoHPrhwxPESTgwfHf4V 8vola6bdz74kSAaYbfPrRu0srf3imLdlS9tUkix7oS0ULXJWJpydjRCCmy8HB340Ixmyr6LGW01h8 Jl+x7FcjM51XCGmee+RYOkNjSg/Kj3wmb4LnCMpAW/5jZabWoTaB9hdV39VfYhgFqeUdJqYHOMkEv Sl4aotWGsokdUe7cTXzgx5RhIqDhLcu9HAg6NbzPxECq9eZ6PPfxlh1bne5YekNASI1afKdkhV2k7 rcJ88CcV8oBD80vhviWC3n+E5A5GVpc4oWHmcYIc5aSrdIOQRLzcSY4s5U5HcdAjv/bJHmXMQgZMH Mumj07HQ==; Received: from [93.123.20.94] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux)) id 1wrEbz-00000001rAA-1O6J; Tue, 04 Aug 2026 12:51:16 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Damien Le Moal , linux-block@vger.kernel.org, io-uring@vger.kernel.org Subject: [PATCH 4/6] block: also reject zone open / close on conventional zones Date: Tue, 4 Aug 2026 05:50:20 -0700 Message-ID: <20260804125038.740388-5-hch@lst.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260804125038.740388-1-hch@lst.de> References: <20260804125038.740388-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Just like zone reset / finish, these only apply to sequential zones. Signed-off-by: Christoph Hellwig Reviewed-by: Damien Le Moal --- block/blk-core.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index 67cfd7bd8542..196bccf27f58 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -897,17 +897,14 @@ void submit_bio_noacct(struct bio *bio) if (!q->limits.max_write_zeroes_sectors) goto not_supported; break; + case REQ_OP_ZONE_OPEN: + case REQ_OP_ZONE_CLOSE: case REQ_OP_ZONE_RESET: case REQ_OP_ZONE_FINISH: - /* - * Zone reset and zone finish operations do not apply to - * conventional zones. - */ + /* Zone management operations require sequential zones. */ if (!bdev_zone_is_seq(bio->bi_bdev, bio->bi_iter.bi_sector)) goto end_io; break; - case REQ_OP_ZONE_OPEN: - case REQ_OP_ZONE_CLOSE: case REQ_OP_ZONE_RESET_ALL: if (!bdev_is_zoned(bio->bi_bdev)) goto not_supported; -- 2.53.0