]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Use IDA for namespace disk naming
authorKeith Busch <keith.busch@intel.com>
Wed, 24 Feb 2016 16:15:53 +0000 (09:15 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:06 +0000 (13:41 -0700)
commit6d912567ebb34f2d5e8e6ccf371e0a23d6cc94f7
tree1f64587f1bae47ae7d85ed695b4c40e520e16ab4
parente70ceaeebee4910ff6ce446c146964f91e84cd09
NVMe: Use IDA for namespace disk naming

A namespace may be detached from a controller, but a user may be holding
a reference to it. Attaching a new namespace with the same NSID will create
duplicate names when using the NSID to name the disk.

This patch uses an IDA that is released only when the last reference is
released instead of using the namespace ID.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 075790ebba4a1eb297f9875e581b55c0382b1f3d)

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