Skip to content

Commit

Permalink
ksmbd: use msleep instaed of schedule_timeout_interruptible()
Browse files Browse the repository at this point in the history
use msleep instaed of schedule_timeout_interruptible()
to guarantee the task delays as expected.

Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
namjaejeon committed Nov 21, 2024
1 parent f59ec8b commit b03ede4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,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;
}
}
Expand Down

0 comments on commit b03ede4

Please sign in to comment.