NVMe: Use an IDA to allocate minor numbers
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 6 May 2011 12:45:47 +0000 (08:45 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 4 Nov 2011 19:53:03 +0000 (15:53 -0400)
commit5aff9382ddc8aac6eb0c70ffbb351652d71da69a
treec8fcc4d065e48b55f8f04d0c7eae858fff2fd1a1
parentfd63e9ceeeae58cfe877c2d49d41c1bf7532303c
NVMe: Use an IDA to allocate minor numbers

The current approach of using the namespace ID as the minor number
doesn't work when there are multiple adapters in the machine.  Rather
than statically partitioning the number of namespaces between adapters,
dynamically allocate minor numbers to namespaces as they are detected.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c