diff options
author | Christoph Hellwig <hch@lst.de> | 2017-10-29 10:44:31 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-11-01 16:28:06 +0100 |
commit | 6cd53d14aaa006b5543f06fbf5e1680ce61c6c6e (patch) | |
tree | 015c68a3118f143e8114fdb25432186164d0b03f /drivers/nvme/target/loop.c | |
parent | e9bc25874c0bde47b65c58ccd01e339a603a7f40 (diff) | |
download | linux-6cd53d14aaa006b5543f06fbf5e1680ce61c6c6e.tar.bz2 |
nvme: consolidate common code from ->reset_work
No change in behavior except that the FC code cancels two work items a
little later now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/loop.c')
-rw-r--r-- | drivers/nvme/target/loop.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index 7f9f3fc3fb2a..bc95c6ed531a 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -440,11 +440,7 @@ static void nvme_loop_shutdown_ctrl(struct nvme_loop_ctrl *ctrl) static void nvme_loop_delete_ctrl_host(struct nvme_ctrl *ctrl) { - nvme_stop_ctrl(ctrl); - nvme_remove_namespaces(ctrl); nvme_loop_shutdown_ctrl(to_loop_ctrl(ctrl)); - nvme_uninit_ctrl(ctrl); - nvme_put_ctrl(ctrl); } static void nvme_loop_delete_ctrl(struct nvmet_ctrl *nctrl) |