提交 375c6bba 编写于 作者: S Sven Wegener

ipvs: Use schedule_timeout_interruptible() instead of msleep_interruptible()

So that kthread_stop() can wake up the thread and we don't have to wait one
second in the worst case for the daemon to actually stop.
Signed-off-by: NSven Wegener <sven.wegener@stealer.net>
Acked-by: NSimon Horman <horms@verge.net.au>
上级 ba6fd850
......@@ -742,7 +742,7 @@ static int sync_thread_master(void *data)
ip_vs_sync_buff_release(sb);
}
msleep_interruptible(1000);
schedule_timeout_interruptible(HZ);
}
/* clean up the sync_buff queue */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册