linux_dsm_epyc7002/drivers/nvme/host
Sagi Grimberg 5110f40241 nvme-rdma: serialize controller teardown sequences
In the timeout handler we may need to complete a request because the
request that timed out may be an I/O that is a part of a serial sequence
of controller teardown or initialization. In order to complete the
request, we need to fence any other context that may compete with us
and complete the request that is timing out.

In this case, we could have a potential double completion in case
a hard-irq or a different competing context triggered error recovery
and is running inflight request cancellation concurrently with the
timeout handler.

Protect using a ctrl teardown_lock to serialize contexts that may
complete a cancelled request due to error recovery or a reset.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
2020-08-28 16:43:57 -07:00
..
core.c nvme: have nvme_wait_freeze_timeout return if it timed out 2020-08-28 16:43:56 -07:00
fabrics.c nvme-fabrics: don't check state NVME_CTRL_NEW for request acceptance 2020-08-28 16:43:56 -07:00
fabrics.h nvme: fix deadlock in disconnect during scan_work and/or ana_work 2020-07-29 07:45:19 +02:00
fault_inject.c
fc.c nvme: rename and document nvme_end_request 2020-08-21 17:14:28 -06:00
fc.h nvme-fc: Update header and host for common definitions for LS handling 2020-05-09 16:18:33 -06:00
hwmon.c nvme-hwmon: log the controller device name 2020-07-29 07:45:20 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
lightnvm.c nvme: support for multiple Command Sets Supported and Effects log pages 2020-07-08 16:16:20 +02:00
Makefile nvme: support for zoned namespaces 2020-07-08 16:16:20 +02:00
multipath.c nvme: refactor command completion 2020-08-21 17:14:28 -06:00
nvme.h nvme: have nvme_wait_freeze_timeout return if it timed out 2020-08-28 16:43:56 -07:00
pci.c nvme: rename and document nvme_end_request 2020-08-21 17:14:28 -06:00
rdma.c nvme-rdma: serialize controller teardown sequences 2020-08-28 16:43:57 -07:00
tcp.c nvme-tcp: fix reset hang if controller died in the middle of a reset 2020-08-28 16:43:57 -07:00
trace.c
trace.h
zns.c block: add max_active_zones to blk-sysfs 2020-07-15 14:26:11 -06:00