]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: Delete created IO queues on reset
authorKeith Busch <keith.busch@intel.com>
Wed, 12 Oct 2016 15:22:16 +0000 (09:22 -0600)
committerAshok Vairavan <ashok.vairavan@oracle.com>
Wed, 19 Jul 2017 20:01:53 +0000 (13:01 -0700)
commitb62a462854e959971570c07f2a076951c44dd758
treed3091e5040b0fb2a0a8bd4d52b938a83982fa0c2
parentbde3f819a72bb2cca55d7a96f8c5a0ada8c5c3ff
nvme: Delete created IO queues on reset

The driver was decrementing the online_queues prior to attempting to
delete those IO queues, so the driver ended up not requesting the
controller delete any. This patch saves the online_queues prior to
suspending them, and adds that parameter for deleting io queues.

Fixes: c21377f8 ("nvme: Suspend all queues before deletion")
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 7065906096273b39b90a512a7170a6697ed94b23)

Orabug: 26486098

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