]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
nvme-multipath: don't bother clearing max_hw_zone_append_sectors
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Nov 2024 15:46:52 +0000 (16:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Nov 2024 16:20:36 +0000 (09:20 -0700)
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>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20241108154657.845768-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/multipath.c

index c26cb7d3a2e55bfe08f4da317298411e2033ca68..f04cfe3fb936cef11dba0999e202ce3eb7f7c4b1 100644 (file)
@@ -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))