diff options
| -rw-r--r-- | drivers/nvme/host/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 5afda6fe5ae9..bb39b91253c2 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c | |||
| @@ -3607,7 +3607,7 @@ void nvme_kill_queues(struct nvme_ctrl *ctrl) | |||
| 3607 | down_read(&ctrl->namespaces_rwsem); | 3607 | down_read(&ctrl->namespaces_rwsem); |
| 3608 | 3608 | ||
| 3609 | /* Forcibly unquiesce queues to avoid blocking dispatch */ | 3609 | /* Forcibly unquiesce queues to avoid blocking dispatch */ |
| 3610 | if (ctrl->admin_q) | 3610 | if (ctrl->admin_q && !blk_queue_dying(ctrl->admin_q)) |
| 3611 | blk_mq_unquiesce_queue(ctrl->admin_q); | 3611 | blk_mq_unquiesce_queue(ctrl->admin_q); |
| 3612 | 3612 | ||
| 3613 | list_for_each_entry(ns, &ctrl->namespaces, list) | 3613 | list_for_each_entry(ns, &ctrl->namespaces, list) |
