NVMe: Fix nvme get/put queue semantics
authorKeith Busch <keith.busch@intel.com>
Tue, 13 May 2014 16:32:46 +0000 (10:32 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 4 Jun 2014 02:58:34 +0000 (22:58 -0400)
commita51afb54339c5e9ee72df66ae0f2ac5aacfed365
treefcaf5e2e3ccc53195f844954cff0713053803dd4
parentde672b9748f78dcbc663e12ea44cb24dc287baf0
NVMe: Fix nvme get/put queue semantics

The routines to get and lock nvme queues required the caller to "put"
or "unlock" them even if getting one returned NULL. This patch fixes that.

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