summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/pci.c
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2016-02-24 09:15:53 -0700
committerJens Axboe <axboe@fb.com>2016-03-03 14:42:49 -0700
commit075790ebba4a1eb297f9875e581b55c0382b1f3d (patch)
tree0b6119c4f7decc6b2809be19006b951e88e34f17 /drivers/nvme/host/pci.c
parentb00a726a9fd82ddd4c10344e46f0d371e1674303 (diff)
downloadlinux-075790ebba4a1eb297f9875e581b55c0382b1f3d.tar.bz2
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>
Diffstat (limited to 'drivers/nvme/host/pci.c')
0 files changed, 0 insertions, 0 deletions