Skip to content

Commit

Permalink
ksmbd: add debug print for pending request during server shutdown
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
namjaejeon committed Nov 21, 2024
1 parent a4e98c2 commit 4371e5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,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 request(:%d)\n", atomic_read(&conn->r_count));
wait_event(conn->r_count_q, atomic_read(&conn->r_count) == 0);

if (IS_ENABLED(CONFIG_UNICODE))
Expand Down

0 comments on commit 4371e5b

Please sign in to comment.