diff options
Diffstat (limited to 'drivers/nvme/target/loop.c')
-rw-r--r-- | drivers/nvme/target/loop.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index 94e782987cc9..7affd40a6b33 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c | |||
@@ -414,9 +414,8 @@ static void nvme_loop_del_ctrl_work(struct work_struct *work) | |||
414 | struct nvme_loop_ctrl *ctrl = container_of(work, | 414 | struct nvme_loop_ctrl *ctrl = container_of(work, |
415 | struct nvme_loop_ctrl, delete_work); | 415 | struct nvme_loop_ctrl, delete_work); |
416 | 416 | ||
417 | nvme_remove_namespaces(&ctrl->ctrl); | ||
418 | nvme_loop_shutdown_ctrl(ctrl); | ||
419 | nvme_uninit_ctrl(&ctrl->ctrl); | 417 | nvme_uninit_ctrl(&ctrl->ctrl); |
418 | nvme_loop_shutdown_ctrl(ctrl); | ||
420 | nvme_put_ctrl(&ctrl->ctrl); | 419 | nvme_put_ctrl(&ctrl->ctrl); |
421 | } | 420 | } |
422 | 421 | ||
@@ -501,7 +500,6 @@ out_free_queues: | |||
501 | nvme_loop_destroy_admin_queue(ctrl); | 500 | nvme_loop_destroy_admin_queue(ctrl); |
502 | out_disable: | 501 | out_disable: |
503 | dev_warn(ctrl->ctrl.device, "Removing after reset failure\n"); | 502 | dev_warn(ctrl->ctrl.device, "Removing after reset failure\n"); |
504 | nvme_remove_namespaces(&ctrl->ctrl); | ||
505 | nvme_uninit_ctrl(&ctrl->ctrl); | 503 | nvme_uninit_ctrl(&ctrl->ctrl); |
506 | nvme_put_ctrl(&ctrl->ctrl); | 504 | nvme_put_ctrl(&ctrl->ctrl); |
507 | } | 505 | } |