From: Nishanth Aravamudan Date: Mon, 2 May 2005 06:34:57 +0000 (-0700) Subject: [PATCH] net/slip: replace schedule_timeout() with msleep_interruptible() X-Git-Tag: v2.6.13-rc1~76 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9fc25108995f1f59ee30026818d7ec2bb016fbe;p=linux-2.6 [PATCH] net/slip: replace schedule_timeout() with msleep_interruptible() Use msleep_interruptible() instead of schedule_timeout() to guarantee the task delays as expected. --- diff --git a/drivers/net/slip.c b/drivers/net/slip.c index c79e0ad4ba..16363b5c6f 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c @@ -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++) {