Commit a9fc2510 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Jeff Garzik

[PATCH] net/slip: replace schedule_timeout() with msleep_interruptible()

Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.
parent 6835d09a
...@@ -1383,10 +1383,8 @@ static void __exit slip_exit(void) ...@@ -1383,10 +1383,8 @@ static void __exit slip_exit(void)
/* First of all: check for active disciplines and hangup them. /* First of all: check for active disciplines and hangup them.
*/ */
do { do {
if (busy) { if (busy)
set_current_state(TASK_INTERRUPTIBLE); msleep_interruptible(100);
schedule_timeout(HZ / 10);
}
busy = 0; busy = 0;
for (i = 0; i < slip_maxdev; i++) { for (i = 0; i < slip_maxdev; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment