nvme-rdma: unquiesce queues when deleting the controller
authorSagi Grimberg <sagi@grimberg.me>
Mon, 9 Jul 2018 09:49:05 +0000 (12:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:38:02 +0000 (08:38 +0200)
commit3cb3868f98f53468160eb732d30ef29aaf046ae3
tree7ac704019ab3cc3ea84b56fa73211e8100808f65
parentfdfa7139899c0e1c21fb521d60d728c521bae822
nvme-rdma: unquiesce queues when deleting the controller

[ Upstream commit 90140624e8face94207003ac9a9d2a329b309d68 ]

If the controller is going away, we need to unquiesce the IO queues so
that all pending request can fail gracefully before moving forward with
controller deletion. Do that before we destroy the IO queues so
blk_cleanup_queue won't block in freeze.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/host/rdma.c