nvme: Delete created IO queues on reset
commit7065906096273b39b90a512a7170a6697ed94b23
authorKeith Busch <keith.busch@intel.com>
Wed, 12 Oct 2016 15:22:16 +0000 (12 09:22 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 12 Oct 2016 15:22:16 +0000 (12 09:22 -0600)
tree57769b9491ac5de9ce2db7e9670ed720878bb455
parent0df1e4f5e0e831670f43bd198623b303ba09cbc0
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>
drivers/nvme/host/pci.c