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)
commitfb35e914b3f88cda9ee6f9d776910c35269c4ecf
tree0bca372b7e76d285f3ac63429743930659c69c32
parent671a6018db1d359254c8201704cf967efb42fc25
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