ksmbd: add debug print for pending request during server shutdown
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 22 Nov 2024 07:15:20 +0000 (16:15 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 26 Nov 2024 00:58:27 +0000 (18:58 -0600)
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>
fs/smb/server/connection.c

index 9be9f39..c14dd72 100644 (file)
@@ -404,6 +404,7 @@ int ksmbd_conn_handler_loop(void *p)
 out:
        ksmbd_conn_set_releasing(conn);
        /* Wait till all reference dropped to the Server object*/
+       ksmbd_debug(CONN, "Wait for all pending requests(%d)\n", atomic_read(&conn->r_count));
        wait_event(conn->r_count_q, atomic_read(&conn->r_count) == 0);
 
        if (IS_ENABLED(CONFIG_UNICODE))