[PATCH] nvmet-tcp: fixup hang in nvmet_tcp_listen_data_ready()

Keith Busch kbusch at kernel.org
Tue Jan 13 07:31:57 PST 2026


On Mon, Aug 18, 2025 at 11:32:45AM +0200, hare at kernel.org wrote:
> From: Hannes Reinecke <hare at kernel.org>
> 
> When the socket is closed while in TCP_LISTEN a callback is run to
> flush all outstanding packets, which in turns calls
> nvmet_tcp_listen_data_ready() with the sk_callback_lock held.
> So we need to check if we are in TCP_LISTEN before attempting
> to get the sk_callback_lock() to avoid a deadlock.

Thanks, applied to nvme-6.19.



More information about the Linux-nvme mailing list