]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07c599fb3e91241d32f6301ccdd68b15f663fc2a
treeb94dbe764d10b981e995da1dbe01f433b414611d
parent4f11642d56e008d1fca1b945444952cb955e0bb4
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