linux/drivers/nvme/target
Ruozhu Li bf78e63235 nvmet-rdma: recheck queue state is LIVE in state lock in recv done
[ Upstream commit 3988ac1c67 ]

The queue state checking in nvmet_rdma_recv_done is not in queue state
lock.Queue state can transfer to LIVE in cm establish handler between
state checking and state lock here, cause a silent drop of nvme connect
cmd.
Recheck queue state whether in LIVE state in state lock to prevent this
issue.

Signed-off-by: Ruozhu Li <david.li@jaguarmicro.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-03-22 12:50:43 -07:00
..
admin-cmd.c nvmet: remove nvmet_req_cns_error_complete 2023-04-13 08:55:05 +02:00
auth.c nvmet-auth: assign dh_key to NULL after kfree_sensitive 2024-11-08 16:28:26 +01:00
configfs.c nvmet: fix ns enable/disable possible hang 2024-06-12 11:12:53 +02:00
core.c nvmet: always initialize cqe.result 2024-07-25 09:50:46 +02:00
discovery.c nvme: move from strlcpy with unused retval to strscpy 2022-09-19 11:33:53 +02:00
fabrics-cmd-auth.c nvmet: always initialize cqe.result 2024-07-25 09:50:46 +02:00
fabrics-cmd.c nvmet: always initialize cqe.result 2024-07-25 09:50:46 +02:00
fc.c nvmet-fc: take ref count on tgtport before delete assoc 2024-03-01 13:34:52 +01:00
fcloop.c nvmet-fcloop: swap the list_add_tail arguments 2024-03-01 13:34:52 +01:00
io-cmd-bdev.c nvmet: propagate npwg topology 2025-01-23 17:21:14 +01:00
io-cmd-file.c nvmet: use bvec_set_page to initialize bvecs 2023-02-03 08:20:55 -07:00
Kconfig nvmet-auth: select the intended CRYPTO_DH_RFC7919_GROUPS 2022-08-02 17:22:51 -06:00
loop.c nvme-loop: flush off pending I/O while shutting down loop controller 2024-11-17 15:08:57 +01:00
Makefile nvmet: implement basic In-Band Authentication 2022-08-02 17:14:49 -06:00
nvmet.h nvmet: fix nvme status code when namespace is disabled 2024-06-12 11:11:30 +02:00
passthru.c nvmet-passthru: propagate status from id override functions 2024-06-21 14:38:35 +02:00
rdma.c nvmet-rdma: recheck queue state is LIVE in state lock in recv done 2025-03-22 12:50:43 -07:00
tcp.c nvmet-tcp: Fix a possible sporadic response drops in weakly ordered arch 2025-03-13 12:58:28 +01:00
trace.c nvmet-trace: avoid dereferencing pointer too early 2024-08-29 17:33:32 +02:00
trace.h nvmet-trace: avoid dereferencing pointer too early 2024-08-29 17:33:32 +02:00
zns.c nvmet: rename nvmet_execute_identify_cns_cs_ns 2023-04-13 08:55:04 +02:00