Skip to content

Commit 0b4ace9

Browse files
Christoph Hellwigaxboe
authored andcommitted
nvme-multipath: don't bother clearing max_hw_zone_append_sectors
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>
1 parent 559218d commit 0b4ace9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/nvme/host/multipath.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,6 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)
635635
lim.features |= BLK_FEAT_IO_STAT | BLK_FEAT_NOWAIT | BLK_FEAT_POLL;
636636
if (head->ids.csi == NVME_CSI_ZNS)
637637
lim.features |= BLK_FEAT_ZONED;
638-
else
639-
lim.max_hw_zone_append_sectors = 0;
640638

641639
head->disk = blk_alloc_disk(&lim, ctrl->numa_node);
642640
if (IS_ERR(head->disk))

0 commit comments

Comments
 (0)