提交 a9fc2510 编写于 作者: N Nishanth Aravamudan 提交者: 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.
上级 6835d09a
......@@ -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++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册