]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet-tcp: fix unhandled tcp states in nvmet_tcp_state_change()
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 29 Aug 2022 12:40:30 +0000 (14:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2022 10:27:59 +0000 (12:27 +0200)
commit9b9fdaa56843af7e69d3f21b77b2c42e76529e12
tree6845610364982f771847c3b49d7cdfae1c92c68a
parent5c8f9c28aa2cad9dce86629567a5c3808ab5709e
nvmet-tcp: fix unhandled tcp states in nvmet_tcp_state_change()

[ Upstream commit b6a2a78fe694be98aaba9ab7278d24af09608995 ]

TCP_FIN_WAIT2 and TCP_LAST_ACK were not handled, the connection is closing
so we can ignore them and avoid printing the "unhandled state"
warning message.

[ 1298.852386] nvmet_tcp: queue 2 unhandled state 5
[ 1298.879112] nvmet_tcp: queue 7 unhandled state 5
[ 1298.884253] nvmet_tcp: queue 8 unhandled state 5
[ 1298.889475] nvmet_tcp: queue 9 unhandled state 5

v2: Do not call nvmet_tcp_schedule_release_queue(), just ignore
the fin_wait2 and last_ack states.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/target/tcp.c