]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ksmbd: don't terminate inactive sessions after a few seconds
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 21 Mar 2023 06:25:34 +0000 (15:25 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:26 +0000 (12:49 +0200)
commitfe9591a5a004f7b3c14c1414e9aabe9602f2c387
treeca161e06012048481a0d93c5a2ca21b96ebbe778
parentd55c0560893ca2d25770ff23bf54d80ad7365aae
ksmbd: don't terminate inactive sessions after a few seconds

commit be6f42fad5f5fd1fea9d562df82c38ad6ed3bfe9 upstream.

Steve reported that inactive sessions are terminated after a few
seconds. ksmbd terminate when receiving -EAGAIN error from
kernel_recvmsg(). -EAGAIN means there is no data available in timeout.
So ksmbd should keep connection with unlimited retries instead of
terminating inactive sessions.

Cc: stable@vger.kernel.org
Reported-by: Steve French <stfrench@microsoft.com>
Signed-off-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/connection.c
fs/ksmbd/connection.h
fs/ksmbd/transport_rdma.c
fs/ksmbd/transport_tcp.c