linux/drivers/nvme/host
Casey Chen 251ef6f71b nvme-pci: do not call nvme_dev_remove_admin from nvme_remove
nvme_dev_remove_admin could free dev->admin_q and the admin_tagset
while they are being accessed by nvme_dev_disable(), which can be called
by nvme_reset_work via nvme_remove_dead_ctrl.

Commit cb4bfda62a ("nvme-pci: fix hot removal during error handling")
intended to avoid requests being stuck on a removed controller by killing
the admin queue. But the later fix c8e9e9b764 ("nvme-pci: unquiesce
admin queue on shutdown"), together with nvme_dev_disable(dev, true)
right before nvme_dev_remove_admin() could help dispatch requests and
fail them early, so we don't need nvme_dev_remove_admin() any more.

Fixes: cb4bfda62a ("nvme-pci: fix hot removal during error handling")
Signed-off-by: Casey Chen <cachen@purestorage.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-07-13 12:03:20 +02:00
..
core.c nvme: use return value from blk_execute_rq() 2021-06-30 15:35:45 -06:00
fabrics.c nvme: use blk_execute_rq() for passthrough commands 2021-06-30 15:35:38 -06:00
fabrics.h nvme: use blk_execute_rq() for passthrough commands 2021-06-30 15:35:38 -06:00
fault_inject.c
fc.c nvme: use blk_execute_rq() for passthrough commands 2021-06-30 15:35:38 -06:00
fc.h
hwmon.c nvme-hwmon: Return error code when registration fails 2021-03-05 13:41:03 +01:00
ioctl.c nvme: use return value from blk_execute_rq() 2021-06-30 15:35:45 -06:00
Kconfig for-5.14/drivers-2021-06-29 2021-06-30 12:21:16 -07:00
lightnvm.c for-5.13/drivers-2021-04-27 2021-04-28 14:39:37 -07:00
Makefile nvme: move the ioctl code to a separate file 2021-04-15 08:12:55 +02:00
multipath.c for-5.14/drivers-2021-06-29 2021-06-30 12:21:16 -07:00
nvme.h nvme: use return value from blk_execute_rq() 2021-06-30 15:35:45 -06:00
pci.c nvme-pci: do not call nvme_dev_remove_admin from nvme_remove 2021-07-13 12:03:20 +02:00
rdma.c nvme: use blk_execute_rq() for passthrough commands 2021-06-30 15:35:38 -06:00
tcp.c nvme-tcp: use __dev_get_by_name instead dev_get_by_name for OPT_HOST_IFACE 2021-07-13 11:34:24 +02:00
trace.c nvme: add tracing of zns commands 2021-02-02 10:26:12 +01:00
trace.h
zns.c nvme: split nvme_report_zones 2021-06-03 10:29:26 +03:00