Skip to content

Commit d32d3d0

Browse files
author
Christoph Hellwig
committed
nvme-multipath: set QUEUE_FLAG_NOWAIT
The nvme multipathing code just dispatches bios to one of the blk-mq based paths and never blocks on its own, so set QUEUE_FLAG_NOWAIT to support REQ_NOWAIT bios. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]>
1 parent 1c500ad commit d32d3d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/nvme/host/multipath.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head)
465465
ctrl->subsys->instance, head->instance);
466466

467467
blk_queue_flag_set(QUEUE_FLAG_NONROT, head->disk->queue);
468+
blk_queue_flag_set(QUEUE_FLAG_NOWAIT, head->disk->queue);
469+
468470
/* set to a default value of 512 until the disk is validated */
469471
blk_queue_logical_block_size(head->disk->queue, 512);
470472
blk_set_stacking_limits(&head->disk->queue->limits);

0 commit comments

Comments
 (0)