]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Remove device management handles on remove
authorKeith Busch <keith.busch@intel.com>
Sat, 28 Nov 2015 14:41:02 +0000 (15:41 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:47 +0000 (13:40 -0700)
commit33e3469d9850f2b803b68db20bbd3cddb4f314af
tree08dda0f0c8cd090cdc18ee40129b0ce9890b08ac
parent435692845e4b0e23721c2cc018062c00e618163c
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>
(cherry picked from commit 53029b0441bbd263dbb2ee6429572b1732dad4de)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c