]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Initialize device reference count earlier
authorKeith Busch <keith.busch@intel.com>
Mon, 3 Mar 2014 18:09:47 +0000 (11:09 -0700)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 24 Mar 2014 12:15:14 +0000 (08:15 -0400)
commit11e0802ae80b4975df3818c2956e7e4f6b11c875
tree0bca372b7e76d285f3ac63429743930659c69c32
parenta7fd55767c83499ea3962e378fd06899d68c5443
NVMe: Initialize device reference count earlier

If an NVMe device becomes ready but fails to create IO queues, the driver
creates a character device handle so the device can be managed. The
device reference count needs to be initialized before creating the
character device.

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