]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: smbd: fix connection dropped issue
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 18 Dec 2023 15:33:00 +0000 (00:33 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:51 +0000 (10:41 +0100)
commit9d609b52f9526e3cf3a9a67f707256e3a41ea145
tree8dc1fa360fbc78c19a9e61977f7edad2c9dae7d7
parent32af379e13dfbe8761deae273bd9bd8b83f31b55
ksmbd: smbd: fix connection dropped issue

[ Upstream commit 5366afc4065075a4456941fbd51c33604d631ee5 ]

When there are bursty connection requests,
RDMA connection event handler is deferred and
Negotiation requests are received even if
connection status is NEW.

To handle it, set the status to CONNECTED
if Negotiation requests are received.

Reported-by: Yufan Chen <wiz.chen@gmail.com>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Tested-by: Yufan Chen <wiz.chen@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/transport_rdma.c