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)
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

Simple merge