Skip to content

Commit 5366afc

Browse files
hcleeSteve French
authored andcommitted
ksmbd: smbd: fix connection dropped issue
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>
1 parent 7820c6e commit 5366afc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ksmbd/transport_rdma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ static void recv_done(struct ib_cq *cq, struct ib_wc *wc)
576576
}
577577
t->negotiation_requested = true;
578578
t->full_packet_received = true;
579+
t->status = SMB_DIRECT_CS_CONNECTED;
579580
enqueue_reassembly(t, recvmsg, 0);
580581
wake_up_interruptible(&t->wait_status);
581582
break;

0 commit comments

Comments
 (0)