diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-07-02 14:40:17 +0200 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2017-07-06 08:48:43 +0200 |
commit | c1c0ffff3a99caf40c3bd21447135db459194123 (patch) | |
tree | 288ec49dcb39256adce141b341e5edbbb754b17c /drivers/nvme | |
parent | nvme-fc: quiesce/unquiesce admin_q instead of start/stop its hw queues (diff) | |
download | linux-c1c0ffff3a99caf40c3bd21447135db459194123.tar.xz linux-c1c0ffff3a99caf40c3bd21447135db459194123.zip |
nvme-loop: quiesce/unquiesce admin_q instead of start/stop its hw queues
unlike blk_mq_stop_hw_queues and blk_mq_start_stopped_hw_queues
quiescing/unquiescing respects the submission path rcu grace.
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/target/loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index 3d51341e62ee..6a0b70685e77 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -434,9 +434,10 @@ static void nvme_loop_shutdown_ctrl(struct nvme_loop_ctrl *ctrl) if (ctrl->ctrl.state == NVME_CTRL_LIVE) nvme_shutdown_ctrl(&ctrl->ctrl); - blk_mq_stop_hw_queues(ctrl->ctrl.admin_q); + blk_mq_quiesce_queue(ctrl->ctrl.admin_q); blk_mq_tagset_busy_iter(&ctrl->admin_tag_set, nvme_cancel_request, &ctrl->ctrl); + blk_mq_unquiesce_queue(ctrl->ctrl.admin_q); nvme_loop_destroy_admin_queue(ctrl); } |