Skip to content

Commit fe8714b

Browse files
keithbuschChristoph Hellwig
authored andcommitted
nvme-multipath: set queue dma alignment to 3
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]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 83e1226 commit fe8714b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/nvme/host/multipath.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)
516516
/* set to a default value of 512 until the disk is validated */
517517
blk_queue_logical_block_size(head->disk->queue, 512);
518518
blk_set_stacking_limits(&head->disk->queue->limits);
519+
blk_queue_dma_alignment(head->disk->queue, 3);
519520

520521
/* we need to propagate up the VMC settings */
521522
if (ctrl->vwc & NVME_CTRL_VWC_PRESENT)

0 commit comments

Comments
 (0)