]> git.hungrycats.org Git - linux/commit
NVMe: Initialize device reference count earlier
authorKeith Busch <keith.busch@intel.com>
Mon, 3 Mar 2014 18:09:47 +0000 (11:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2015 09:36:26 +0000 (11:36 +0200)
commit184e1198462223a7347a923d02370bf79207638b
treedbed172360d62f6973659690c65afbc52b287032
parent34820fc89c5e635b7381e4060931ca30a63d110a
NVMe: Initialize device reference count earlier

commit fb35e914b3f88cda9ee6f9d776910c35269c4ecf upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/nvme-core.c