mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
[PATCH] net/slip: replace schedule_timeout() with msleep_interruptible()
Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected.
This commit is contained in:
parent
6835d09ad2
commit
a9fc251089
@ -1383,10 +1383,8 @@ static void __exit slip_exit(void)
|
||||
/* First of all: check for active disciplines and hangup them.
|
||||
*/
|
||||
do {
|
||||
if (busy) {
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
schedule_timeout(HZ / 10);
|
||||
}
|
||||
if (busy)
|
||||
msleep_interruptible(100);
|
||||
|
||||
busy = 0;
|
||||
for (i = 0; i < slip_maxdev; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user