Skip to content

Commit f75f8bd

Browse files
namjaejeonSteve French
authored andcommitted
ksmbd: use msleep instaed of schedule_timeout_interruptible()
use msleep instaed of schedule_timeout_interruptible() to guarantee the task delays as expected. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 0066f62 commit f75f8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/server/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static void stop_sessions(void)
462462
up_read(&conn_list_lock);
463463

464464
if (!list_empty(&conn_list)) {
465-
schedule_timeout_interruptible(HZ / 10); /* 100ms */
465+
msleep(100);
466466
goto again;
467467
}
468468
}

0 commit comments

Comments
 (0)