Skip to content

Commit b0b3d62

Browse files
namjaejeongregkh
authored andcommitted
ksmbd: use msleep instaed of schedule_timeout_interruptible()
[ Upstream commit f75f8bd ] 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> Stable-dep-of: def036e ("ksmbd: reset rcount per connection in ksmbd_conn_wait_idle_sess_id()") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1171f32 commit b0b3d62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/smb/server/connection.c

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

497497
if (!list_empty(&conn_list)) {
498-
schedule_timeout_interruptible(HZ / 10); /* 100ms */
498+
msleep(100);
499499
goto again;
500500
}
501501
}

0 commit comments

Comments
 (0)