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)
committerSteve French <stfrench@microsoft.com>
Wed, 22 Mar 2023 21:38:33 +0000 (16:38 -0500)
commitbe6f42fad5f5fd1fea9d562df82c38ad6ed3bfe9
treef7fff69255f9c2c65d5e765dc49c2da7c8f8d86a
parent2624b445544ffc1472ccabfb6ec867c199d4c95c
ksmbd: don't terminate inactive sessions after a few seconds

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>
fs/ksmbd/connection.c
fs/ksmbd/connection.h
fs/ksmbd/transport_rdma.c
fs/ksmbd/transport_tcp.c