NVMe: Remove device management handles on remove
authorKeith Busch <keith.busch@intel.com>
Sat, 28 Nov 2015 14:41:02 +0000 (15:41 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 22 Dec 2015 16:38:33 +0000 (09:38 -0700)
commit53029b0441bbd263dbb2ee6429572b1732dad4de
tree28c6524a7fc5c56c019835d12c16c3ef2baca51b
parent92f7a1624bbc2361b96db81de89aee1baae40da9
NVMe: Remove device management handles on remove

We don't want to allow new references to open on a device that is
removed. This ties the lifetime of these handles to the physical device's
presence rather than to the open reference count.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c