diff options
author | Christoph Hellwig <hch@lst.de> | 2017-10-29 09:44:29 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-11-01 16:28:04 +0100 |
commit | c5017e85705bfea721732e153305d1988ff965c2 (patch) | |
tree | 5ecd9c8c6c755aacb3e82385e4da636b2c3f1a11 /drivers/nvme/host/fabrics.c | |
parent | nvme-fc: merge __nvme_fc_schedule_delete_work into __nvme_fc_del_ctrl (diff) | |
download | linux-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.c | 2 |
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); } |