mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
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>
This commit is contained in:
parent
0066f623bc
commit
f75f8bdd4f
|
|
@ -462,7 +462,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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user