]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Register management handle under nvme class
authorKeith Busch <keith.busch@intel.com>
Tue, 3 Feb 2015 18:21:42 +0000 (11:21 -0700)
committerKeith Busch <keith.busch@intel.com>
Thu, 19 Feb 2015 23:15:36 +0000 (16:15 -0700)
commitece7f6f357b8cfa139718657ca6be85665db5957
treefcfc462210dc041f7341f959799174d95ce83c83
parent61d77059ee3c3efb5d5104f3b35a400ea8d2cabe
NVMe: Register management handle under nvme class

This creates a new class type for nvme devices to register their
management character devices with. This is so we do not rely on miscdev
to provide enough minors for as many nvme devices some people plan to
use. The previous limit was approximately 60 NVMe controllers, depending
on the platform and kernel. Now the limit is 1M, which ought to be enough
for anybody.

Since we have a new device class, it makes sense to attach the block
devices under this as well, so part of this patch moves the management
handle initialization prior to the namespaces discovery.

Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/block/nvme-core.c
include/linux/nvme.h