diff options
author | Jianchao Wang <jianchao.w.wang@oracle.com> | 2018-06-20 07:42:22 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-06-21 16:59:42 +0200 |
commit | 9f9cafc14016f23f982d3ce18f9057923bd3037a (patch) | |
tree | 15b08d09c35beacdd80cd36c25f8d0151540bde9 /drivers/lightnvm/Kconfig | |
parent | nvme-fc: release io queues to allow fast fail (diff) | |
download | linux-9f9cafc14016f23f982d3ce18f9057923bd3037a.tar.xz linux-9f9cafc14016f23f982d3ce18f9057923bd3037a.zip |
nvme-pci: move nvme_kill_queues to nvme_remove_dead_ctrl
There is race between nvme_remove and nvme_reset_work that can
lead to io hang.
nvme_remove nvme_reset_work
-> nvme_remove_dead_ctrl
-> nvme_dev_disable
-> quiesce request_queue
-> queue remove_work
-> cancel_work_sync reset_work
-> nvme_remove_namespaces
-> splice ctrl->namespaces
nvme_remove_dead_ctrl_work
-> nvme_kill_queues
-> nvme_ns_remove do nothing
-> blk_cleanup_queue
-> blk_freeze_queue
Finally, the request_queue is quiesced state when wait freeze,
we will get io hang here. To fix it, move the nvme_kill_queues
from nvme_remove_dead_ctrl_work to nvme_remove_dead_ctrl.
Suggested-by: Keith Busch <keith.busch@linux.intel.com>
Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions