diff mbox series

[6/6] ksmbd: use msleep instaed of schedule_timeout_interruptible()

Message ID 20241123041706.4943-6-linkinjeon@kernel.org (mailing list archive)
State New
Headers show
Series [1/6] ksmbd: use __GFP_RETRY_MAYFAIL | expand

Commit Message

Namjae Jeon Nov. 23, 2024, 4:17 a.m. UTC
use msleep instaed of schedule_timeout_interruptible()
to guarantee the task delays as expected.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
---
 fs/smb/server/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/smb/server/connection.c b/fs/smb/server/connection.c
index a329e6c9076e..c14dd72e1b30 100644
--- a/fs/smb/server/connection.c
+++ b/fs/smb/server/connection.c
@@ -463,7 +463,7 @@  static void stop_sessions(void)
 	up_read(&conn_list_lock);
 
 	if (!list_empty(&conn_list)) {
-		schedule_timeout_interruptible(HZ / 10); /* 100ms */
+		msleep(100);
 		goto again;
 	}
 }