nvme-multipath: set queue dma alignment to 3
PATCH 1/1 nvme-multipath: set queue dma alignment to 3
From: Keith Busch <[email protected]>
NVMe spec requires all transports support dword aligned addresses, which is already set in the namespace request_queue. Set the same limit in the multipath device's request_queue as well.
Signed-off-by Keith Busch <[email protected]>
--- drivers/nvme/host/multipath.c | 1 + 1 file changed, 1 insertion(+)
drivers/nvme/host/multipath.c +1 -0
@@ -516,6 +516,7 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)/* set to a default value of 512 until the disk is validated */ blk_queue_logical_block_size (head->disk->queue,512 );blk_set_stacking_limits (&head->disk->queue->limits); +blk_queue_dma_alignment (head->disk->queue,3 );/* we need to propagate up the VMC settings */ if (ctrl->vwc &NVME_CTRL_VWC_PRESENT )
Signature · 1 line
2.30.2
Reviewed-by Sagi Grimberg <[email protected]>
Quoted 8 lines · Keith Busch
From: Keith Busch <[email protected]>
NVMe spec requires all transports support dword aligned addresses, which is already set in the namespace
request_queue. Set the same limit in the multipath device'srequest_queueas well.Signed-off-by Keith Busch <[email protected]>
Indeed it is.
Reviewed-by Chaitanya Kulkarni <[email protected]>
-ck
Thanks,
applied to nvme-6.1.