diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-08 13:20:12 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-12-06 16:36:54 +0300 |
commit | 285b6e9b571714270fa503d0e32f244d15b9f85f (patch) | |
tree | 3ed84add4be44902683405ac38b2b9800966e02d /drivers/nvme/target/loop.c | |
parent | e6d275de2e4aaebdc97aa022c031a0dcc475efa4 (diff) | |
download | linux-285b6e9b571714270fa503d0e32f244d15b9f85f.tar.xz |
nvme: merge nvme_shutdown_ctrl into nvme_disable_ctrl
Many of the callers decide which one to use based on a bool argument and
there is at least some code to be shared, so merge these two. Also
move a comment specific to a single callsite to that callsite.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hector Martin <marcan@marcan.st>
Diffstat (limited to 'drivers/nvme/target/loop.c')
-rw-r--r-- | drivers/nvme/target/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c index 6d176621f46d..0015aed5c169 100644 --- a/drivers/nvme/target/loop.c +++ b/drivers/nvme/target/loop.c @@ -401,7 +401,7 @@ static void nvme_loop_shutdown_ctrl(struct nvme_loop_ctrl *ctrl) nvme_quiesce_admin_queue(&ctrl->ctrl); if (ctrl->ctrl.state == NVME_CTRL_LIVE) - nvme_shutdown_ctrl(&ctrl->ctrl); + nvme_disable_ctrl(&ctrl->ctrl, true); nvme_cancel_admin_tagset(&ctrl->ctrl); nvme_loop_destroy_admin_queue(ctrl); |