kernel_optimize_test/drivers/nvme/host
Keith Busch cc1d5e749a nvme/pci: Sync controller reset for AER slot_reset
AER handling expects a successful return from slot_reset means the
driver made the device functional again. The nvme driver had been using
an asynchronous reset to recover the device, so the device
may still be initializing after control is returned to the
AER handler. This creates problems for subsequent event handling,
causing the initializion to fail.

This patch fixes that by syncing the controller reset before returning
to the AER driver, and reporting the true state of the reset.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=199657
Reported-by: Alex Gagniuc <mr.nuke.me@gmail.com>
Cc: Sinan Kaya <okaya@codeaurora.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
Tested-by: Alex Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
2018-05-11 13:55:57 -06:00
..
core.c nvme: only reconfigure discard if necessary 2018-05-02 11:16:58 -06:00
fabrics.c nvme: expand nvmf_check_if_ready checks 2018-04-12 09:58:27 -06:00
fabrics.h nvme: expand nvmf_check_if_ready checks 2018-04-12 09:58:27 -06:00
fault_inject.c nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
fc.c nvme: fc: provide a descriptive error 2018-04-26 13:25:58 -06:00
Kconfig nvme: implement multipath access to nvme subsystems 2017-11-10 19:53:25 -07:00
lightnvm.c lightnvm: remove function name in strings 2018-03-29 17:29:09 -06:00
Makefile nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
multipath.c for-4.17/block-20180402 2018-04-05 14:27:02 -07:00
nvme.h nvme: expand nvmf_check_if_ready checks 2018-04-12 09:58:27 -06:00
pci.c nvme/pci: Sync controller reset for AER slot_reset 2018-05-11 13:55:57 -06:00
rdma.c nvme: expand nvmf_check_if_ready checks 2018-04-12 09:58:27 -06:00
trace.c nvme: add tracepoint for nvme_setup_cmd 2018-01-26 12:34:40 +01:00
trace.h nvme: change order of qid and cmdid in completion trace 2018-04-26 13:30:08 -06:00