summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/fabrics.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-10-29 09:44:29 +0100
committerChristoph Hellwig <hch@lst.de>2017-11-01 16:28:04 +0100
commitc5017e85705bfea721732e153305d1988ff965c2 (patch)
tree5ecd9c8c6c755aacb3e82385e4da636b2c3f1a11 /drivers/nvme/host/fabrics.c
parentnvme-fc: merge __nvme_fc_schedule_delete_work into __nvme_fc_del_ctrl (diff)
downloadlinux-c5017e85705bfea721732e153305d1988ff965c2.tar.xz
linux-c5017e85705bfea721732e153305d1988ff965c2.zip
nvme: move controller deletion to common code
Move the ->delete_work and the associated helpers to common code instead of duplicating them in every driver. This also adds the missing reference get/put for the loop driver. 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/host/fabrics.c')
-rw-r--r--drivers/nvme/host/fabrics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 4a83137b0268..a4967de5bb25 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -887,7 +887,7 @@ nvmf_create_ctrl(struct device *dev, const char *buf, size_t count)
"controller returned incorrect NQN: \"%s\".\n",
ctrl->subnqn);
up_read(&nvmf_transports_rwsem);
- ctrl->ops->delete_ctrl(ctrl);
+ nvme_delete_ctrl_sync(ctrl);
return ERR_PTR(-EINVAL);
}