]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitb3fffdefabab266ae5176a136d93b6670b07bb30
treefcfc462210dc041f7341f959799174d95ce83c83
parent4f1982b4e262c45475a91b4253e9bc7f7c991c13
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