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

Use msleep_interruptible() instead of schedule_timeout() to guarantee
the task delays as expected.

authored by Nishanth Aravamudan and committed by Jeff Garzik a9fc2510 6835d09a

+2 -4
+2 -4
drivers/net/slip.c
··· 1383 1383 /* First of all: check for active disciplines and hangup them. 1384 1384 */ 1385 1385 do { 1386 - if (busy) { 1387 - set_current_state(TASK_INTERRUPTIBLE); 1388 - schedule_timeout(HZ / 10); 1389 - } 1386 + if (busy) 1387 + msleep_interruptible(100); 1390 1388 1391 1389 busy = 0; 1392 1390 for (i = 0; i < slip_maxdev; i++) {