diff mbox series

[2/2] nvme-multipath: don't bother clearing max_hw_zone_append_sectors

Message ID 20241108154657.845768-3-hch@lst.de (mailing list archive)
State New
Headers show
Series [1/2] block: pre-calculate max_zone_append_sectors | expand

Commit Message

Christoph Hellwig Nov. 8, 2024, 3:46 p.m. UTC
The limits stacking now properly zeroes it if at least one of the
underlying limits clears it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 drivers/nvme/host/multipath.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Damien Le Moal Nov. 9, 2024, 1:04 a.m. UTC | #1
On 11/9/24 00:46, Christoph Hellwig wrote:
> The limits stacking now properly zeroes it if at least one of the
> underlying limits clears it.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Looks OK to me.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
diff mbox series

Patch

diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index c26cb7d3a2e5..f04cfe3fb936 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -635,8 +635,6 @@  int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)
 	lim.features |= BLK_FEAT_IO_STAT | BLK_FEAT_NOWAIT | BLK_FEAT_POLL;
 	if (head->ids.csi == NVME_CSI_ZNS)
 		lim.features |= BLK_FEAT_ZONED;
-	else
-		lim.max_hw_zone_append_sectors = 0;
 
 	head->disk = blk_alloc_disk(&lim, ctrl->numa_node);
 	if (IS_ERR(head->disk))