]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Delete only created queues
authorKeith Busch <keith.busch@intel.com>
Fri, 6 May 2016 17:50:52 +0000 (11:50 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:23 +0000 (13:41 -0700)
commit5d7b2b4a305355ed9badf05cedc4eb518c285862
treee65ae9dc44973c4710ce900a693f6377c83c023e
parente292a29c3a260745c2af6dd336722aa18afe1edb
NVMe: Delete only created queues

Use the online queue count instead of the number of allocated queues. The
controller should just return an invalid queue identifier error to the
commands if a queue wasn't created. While it's not harmful, it's still
not correct.

Reported-by: Saar Gross <saar@annapurnalabs.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 014a0d609eb4721d1e416cf10da2d5602f9b34d5)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c