nvme: move controller deletion to common code
authorChristoph Hellwig <hch@lst.de>
Sun, 29 Oct 2017 08:44:29 +0000 (10:44 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Nov 2017 15:28:04 +0000 (16:28 +0100)
commitc5017e85705bfea721732e153305d1988ff965c2
tree5ecd9c8c6c755aacb3e82385e4da636b2c3f1a11
parent29c09648734b94e42802f021658a47361169403b
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>
drivers/nvme/host/core.c
drivers/nvme/host/fabrics.c
drivers/nvme/host/fc.c
drivers/nvme/host/nvme.h
drivers/nvme/host/rdma.c
drivers/nvme/target/loop.c