[PATCH] nvmet-tcp: handle TCP_CLOSING state in nvmet_tcp_state_change

Keith Busch kbusch at kernel.org
Wed Jun 10 08:17:10 PDT 2026


On Mon, Mar 16, 2026 at 05:44:41PM +0100, Maurizio Lombardi wrote:
> When an NVMe/TCP connection shuts down, the underlying
> TCP socket can enter the TCP_CLOSING state (state 11).
> Currently, the nvmet_tcp_state_change() callback does not
> explicitly handle this state, which results in harmless but
> noisy kernel warnings:
> 
> nvmet_tcp: queue 2 unhandled state 11
> 
> Add TCP_CLOSING to the switch statement alongside TCP_FIN_WAIT2 and
> TCP_LAST_ACK to silently ignore the state transition.

Thanks, applied to nvme-7.2.



More information about the Linux-nvme mailing list