Skip to content

Commit ed09fa2

Browse files
committed
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>
1 parent 9607aa9 commit ed09fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connection.c

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

517517
if (!list_empty(&conn_list)) {
518-
schedule_timeout_interruptible(HZ / 10); /* 100ms */
518+
msleep(100);
519519
goto again;
520520
}
521521
}

0 commit comments

Comments
 (0)