]> git.baikalelectronics.ru Git - kernel.git/commit
nvme/pci: Fix stuck nvme reset
authorKeith Busch <keith.busch@intel.com>
Tue, 27 Jun 2017 23:44:05 +0000 (17:44 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jun 2017 23:44:05 +0000 (17:44 -0600)
commit6eff3a509520ade50091e701f7dd4de8156eaa5c
treed38abb27b86a8f58077047372cf531bdfd7ddb2b
parent1073698ac297ecefbe7c67da8481c0d69308778f
nvme/pci: Fix stuck nvme reset

The controller state is set to resetting prior to disabling the
controller, so this patch accounts for that state when deciding if it
needs to freeze the queues. Without this, an 'nvme reset /dev/nvme0'
blocks forever because the queues were never frozen.

Fixes: f8c759cf7ed5 ("nvme-pci: fix multiple ctrl removal scheduling")
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c