diff options
author | Christoph Hellwig <hch@lst.de> | 2021-06-14 14:17:34 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-09-06 10:59:02 +0300 |
commit | d32d3d0b47f7e34560ae3c55ddfcf68694813501 (patch) | |
tree | cc1539fa1f8d564032c2a559d78acfe7035e71b6 /drivers/nvme | |
parent | 1c500ad706383f1a6609e63d0b5d1723fd84dab9 (diff) | |
download | linux-d32d3d0b47f7e34560ae3c55ddfcf68694813501.tar.xz |
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 <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/multipath.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c index 37ce3e8b1db2..d9a82adb856f 100644 --- a/drivers/nvme/host/multipath.c +++ b/drivers/nvme/host/multipath.c @@ -465,6 +465,8 @@ int nvme_mpath_alloc_disk(struct nvme_ctrl *ctrl, struct nvme_ns_head *head) ctrl->subsys->instance, head->instance); blk_queue_flag_set(QUEUE_FLAG_NONROT, head->disk->queue); + blk_queue_flag_set(QUEUE_FLAG_NOWAIT, head->disk->queue); + /* 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); |