linux/drivers/nvme/host
Ruozhu Li ea4a353c0e nvme-rdma: don't update queue count when failing to set io queues
[ Upstream commit 85032874f8 ]

We update ctrl->queue_count and schedule another reconnect when io queue
count is zero.But we will never try to create any io queue in next reco-
nnection, because ctrl->queue_count already set to zero.We will end up
having an admin-only session in Live state, which is exactly what we try
to avoid in the original patch.
Update ctrl->queue_count after queue_count zero checking to fix it.

Signed-off-by: Ruozhu Li <liruozhu@huawei.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-15 09:50:25 +02:00
..
core.c nvme: set the PRACT bit when using Write Zeroes with T10 PI 2021-07-28 14:35:41 +02:00
fabrics.c nvme-fabrics: decode host pathing error for connect 2021-06-16 12:01:37 +02: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-fc: clear q_live at beginning of association teardown 2021-05-26 12:06:49 +02:00
fc.h
hwmon.c nvme: return errors for hwmon init 2020-09-22 17:49:55 +02:00
Kconfig nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME 2021-06-16 12:01:38 +02: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 nvmet: use new ana_log_size instead the old one 2021-05-26 12:06:57 +02:00
nvme.h nvme-multipath: fix double initialization of ANA state 2021-05-26 12:06:57 +02:00
pci.c nvme-pci: don't WARN_ON in nvme_reset_work if ctrl.state is not RESETTING 2021-07-28 14:35:40 +02:00
rdma.c nvme-rdma: don't update queue count when failing to set io queues 2021-09-15 09:50:25 +02:00
tcp.c nvme-tcp: don't update queue count when failing to set io queues 2021-09-15 09:50:25 +02:00
trace.c
trace.h nvme: fix nvme_setup_command metadata trace event 2021-08-08 09:05:23 +02:00
zns.c nvme: remove the disk argument to nvme_update_zone_info 2020-10-07 07:56:17 +02:00