Revision ebef7368571d88f0f80b817e6898075c62265b4e authored by Keith Busch on 27 June 2017, 23:44:05 UTC, committed by Jens Axboe on 27 June 2017, 23:44:05 UTC
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: 82b057caefaf ("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>
1 parent 3c2bfba
History
File Mode Size
ircomm
irlan
irnet
Kconfig -rw-r--r-- 3.3 KB
Makefile -rw-r--r-- 503 bytes
af_irda.c -rw-r--r-- 66.4 KB
discovery.c -rw-r--r-- 12.4 KB
irda_device.c -rw-r--r-- 7.9 KB
iriap.c -rw-r--r-- 25.9 KB
iriap_event.c -rw-r--r-- 12.2 KB
irias_object.c -rw-r--r-- 13.2 KB
irlap.c -rw-r--r-- 33.1 KB
irlap_event.c -rw-r--r-- 64.3 KB
irlap_frame.c -rw-r--r-- 35.5 KB
irlmp.c -rw-r--r-- 53.4 KB
irlmp_event.c -rw-r--r-- 25.3 KB
irlmp_frame.c -rw-r--r-- 13.7 KB
irmod.c -rw-r--r-- 5.1 KB
irnetlink.c -rw-r--r-- 3.3 KB
irproc.c -rw-r--r-- 2.5 KB
irqueue.c -rw-r--r-- 22.5 KB
irsysctl.c -rw-r--r-- 6.9 KB
irttp.c -rw-r--r-- 50.1 KB
parameters.c -rw-r--r-- 15.3 KB
qos.c -rw-r--r-- 22.2 KB
timer.c -rw-r--r-- 6.3 KB
wrapper.c -rw-r--r-- 13.0 KB

back to top