NVMe: Dynamically allocate partition numbers
authorMatthew Wilcox <willy@linux.intel.com>
Mon, 9 Dec 2013 17:58:46 +0000 (12:58 -0500)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 28 Jan 2014 01:11:29 +0000 (20:11 -0500)
commit469071a37afc8a627b6b2ddf29db0a097d864845
treeb94dbe764d10b981e995da1dbe01f433b414611d
parent4d115420707afcabe77d2535e092356df6664b70
NVMe: Dynamically allocate partition numbers

Some users need more than 64 partitions per device.  Rather than simply
increasing the number of partitions, switch to the dynamic partition
allocation scheme.

This means that minor numbers are not stable across boots, but since major
numbers aren't either, I cannot see this being a significant problem.

Tested-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c