OpenCloudOS-Kernel/drivers/nvme/host
Keith Busch 302ad8cc09 nvme: Complete all stuck requests
If the nvme driver is shutting down its controller, the drievr will not
start the queues up again, preventing blk-mq's hot CPU notifier from
making forward progress.

To fix that, this patch starts a request_queue freeze when the driver
resets a controller so no new requests may enter. The driver will wait
for frozen after IO queues are restarted to ensure the queue reference
can be reinitialized when nvme requests to unfreeze the queues.

If the driver is doing a safe shutdown, the driver will wait for the
controller to successfully complete all inflight requests so that we
don't unnecessarily fail them. Once the controller has been disabled,
the queues will be restarted to force remaining entered requests to end
in failure so that blk-mq's hot cpu notifier may progress.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-03-02 08:56:59 -07:00
..
Kconfig nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
Makefile nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
core.c nvme: Complete all stuck requests 2017-03-02 08:56:59 -07:00
fabrics.c nvme: make nvmf_register_transport require a create_ctrl callback 2017-02-22 13:34:00 -07:00
fabrics.h nvme: make nvmf_register_transport require a create_ctrl callback 2017-02-22 13:34:00 -07:00
fc.c nvme-fc: don't bother to validate ioccsz and iorcsz 2017-02-22 13:34:00 -07:00
lightnvm.c lightnvm: use end_io callback instead of instance 2017-01-31 08:32:13 -07:00
nvme.h nvme: Complete all stuck requests 2017-03-02 08:56:59 -07:00
pci.c nvme: Complete all stuck requests 2017-03-02 08:56:59 -07:00
rdma.c scripts/spelling.txt: add "embeded" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
scsi.c nvme/scsi: don't rely on BLK_MAX_CDB 2017-01-30 08:33:51 -07:00