]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-rdma: Remove duplicate call to nvme_remove_namespaces
authorSagi Grimberg <sagi@grimberg.me>
Sun, 24 Jul 2016 06:29:51 +0000 (09:29 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Wed, 3 Aug 2016 13:25:11 +0000 (16:25 +0300)
commitc8087354f0ae1e10b60a2df6c9efc547f5b2d25e
tree4b6582526507477def22b9be3fd8faffce627355
parent6de61d60b0f9fa2382461a94019d52fd89bbcffa
nvme-rdma: Remove duplicate call to nvme_remove_namespaces

nvme_uninit_ctrl already does that for us. Note that we reordered
nvme_rdma_shutdown_ctrl and nvme_uninit_ctrl, this is perfectly
fine because we actually want ctrl uninit (aen, scan cancellation
and namespaces removal) to happen before we shutdown the rdma
resources.

Also, centralize the deletion work and the dead controller removal
work code duplication into __nvme_rdma_shutdown_ctrl that accepts
a shutdown boolean.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c