Skip to content

Commit

Permalink
[PATCH] net/slip: replace schedule_timeout() with msleep_interruptible()
Browse files Browse the repository at this point in the history
Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.
  • Loading branch information
Nishanth Aravamudan authored and Jeff Garzik committed Jun 26, 2005
1 parent 6835d09 commit a9fc251
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit a9fc251

Please sign in to comment.