Skip to content

Commit db5f824

Browse files
namjaejeonSteve French
authored andcommitted
ksmbd: add debug print for pending request during server shutdown
We need to know how many pending requests are left at the end of server shutdown. That means we need to know how long the server will wait to process pending requests in case of a server shutdown. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 5f3f274 commit db5f824

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/smb/server/connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ int ksmbd_conn_handler_loop(void *p)
404404
out:
405405
ksmbd_conn_set_releasing(conn);
406406
/* Wait till all reference dropped to the Server object*/
407+
ksmbd_debug(CONN, "Wait for all pending requests(%d)\n", atomic_read(&conn->r_count));
407408
wait_event(conn->r_count_q, atomic_read(&conn->r_count) == 0);
408409

409410
if (IS_ENABLED(CONFIG_UNICODE))

0 commit comments

Comments
 (0)