Skip to content

Commit 193890b

Browse files
zhangyi089kawasaki
authored andcommitted
nvme-multipath: add BLK_FEAT_WRITE_ZEROES_UNMAP support
Set the BLK_FEAT_WRITE_ZEROES_UNMAP feature while creating multipath stacking queue limits by default. This feature shall be disabled if any attached namespace does not support it. Signed-off-by: Zhang Yi <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
1 parent 0fbeb02 commit 193890b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/nvme/host/multipath.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)
745745
blk_set_stacking_limits(&lim);
746746
lim.dma_alignment = 3;
747747
lim.features |= BLK_FEAT_IO_STAT | BLK_FEAT_NOWAIT |
748-
BLK_FEAT_POLL | BLK_FEAT_ATOMIC_WRITES;
748+
BLK_FEAT_POLL | BLK_FEAT_ATOMIC_WRITES |
749+
BLK_FEAT_WRITE_ZEROES_UNMAP;
749750
if (head->ids.csi == NVME_CSI_ZNS)
750751
lim.features |= BLK_FEAT_ZONED;
751752

0 commit comments

Comments
 (0)