Message ID | 20240403084247.856481-24-dlemoal@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B82946D1AF; Wed, 3 Apr 2024 08:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712133806; cv=none; b=dnbRDZBrXkJfUopo2Y/gKuOVSVrvDEzCJMJrN2opiqEm6j9zyWEWk2CzvKJIRKK6KGhXfmRiP3bC0qwKl4AQ9Dt8ZcXTRw6KxDa4tr/kNBRcrnmTOLubgPuSLIldNa67ErE8oZzwtoDnpJLqELKlRlVBV3I/6zqZefEmo709EqM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712133806; c=relaxed/simple; bh=swSQmLVcxXZAAaPOdJC4n8okb3JMRstty8OESc7Mb0Q=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TvFWX/EDnU+7zbQreo/gEEgW50Cuyi9+QEHdTDLV+tQL7GP9xUrVkN+PnrJw2RBF8xmE7FsVWNiXgYdJ1e5XzjKP82V4W4cwl02VGiM3vwYLITT9G4MFARKf0Dd5QZ/mtMQF3w8LWwqbEMoJmQMwKyqIu45Z2HlWEOA3udHWjy0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L+XG5dQP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L+XG5dQP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C9F7C43390; Wed, 3 Apr 2024 08:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712133806; bh=swSQmLVcxXZAAaPOdJC4n8okb3JMRstty8OESc7Mb0Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=L+XG5dQPK3OEoJhS7JDkk6+6SRWeWPCto2t+qQTOPYiilPaF6tB0rsQqp02pMdpR5 3+DXqOWHXKJgXfvq8NWeezxHm/uik08lEWoY5LqDueKtDoE56/gr5nPyIdvnKo+hf3 SBQJIf6S3r/8FPopNvxdg4H/NyCaLW7ixbIta+XWAFexRPU1ii/bFQom3owjA9PjoV m/gN+upjTp90M7Wn5Gmvw9XmxVtgH1q3ZnR59wNroWYCX4S1ydwrpdgJd7o72iiPsv s0N9Gwo5hg0fFWxliqfQNtNxCUU5FZ2QXDDLgZ7xuTMOIF11epxSJW27ecAwlEdxt0 fUj/29tkqiNVw== From: Damien Le Moal <dlemoal@kernel.org> To: linux-block@vger.kernel.org, Jens Axboe <axboe@kernel.dk>, linux-scsi@vger.kernel.org, "Martin K . Petersen" <martin.petersen@oracle.com>, dm-devel@lists.linux.dev, Mike Snitzer <snitzer@redhat.com>, linux-nvme@lists.infradead.org, Keith Busch <kbusch@kernel.org>, Christoph Hellwig <hch@lst.de> Subject: [PATCH v5 23/28] block: Do not check zone type in blk_check_zone_append() Date: Wed, 3 Apr 2024 17:42:42 +0900 Message-ID: <20240403084247.856481-24-dlemoal@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240403084247.856481-1-dlemoal@kernel.org> References: <20240403084247.856481-1-dlemoal@kernel.org> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: <linux-scsi.vger.kernel.org> List-Subscribe: <mailto:linux-scsi+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-scsi+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
Zone write plugging
|
expand
|
diff --git a/block/blk-core.c b/block/blk-core.c index 3bf28149e104..e1a5344c2257 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -589,8 +589,7 @@ static inline blk_status_t blk_check_zone_append(struct request_queue *q, return BLK_STS_NOTSUPP; /* The bio sector must point to the start of a sequential zone */ - if (!bdev_is_zone_start(bio->bi_bdev, bio->bi_iter.bi_sector) || - !bio_zone_is_seq(bio)) + if (!bdev_is_zone_start(bio->bi_bdev, bio->bi_iter.bi_sector)) return BLK_STS_IOERR; /*