[PATCH v2] nvmet-rdma: recheck queue state is LIVE in state lock in recv done
Sagi Grimberg
sagi at grimberg.me
Mon Feb 17 00:02:48 PST 2025
On 16/02/2025 14:49, Ruozhu Li wrote:
> 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 at jaguarmicro.com>
> ---
> v2: Add comments and modify the code structure as Christoph suggested.
This looks good. Glad that we are not unconditionally taking a spinlock
in the datapath.
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
More information about the Linux-nvme
mailing list