From: Sven Wegener Date: Wed, 16 Jul 2008 11:14:03 +0000 (+0000) Subject: ipvs: Use schedule_timeout_interruptible() instead of msleep_interruptible() X-Git-Tag: v2.6.27-rc1~969^2~109^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=375c6bbabf210ded3151481ca1ac7f730903512b;p=linux-2.6-omap-h63xx.git 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: Sven Wegener Acked-by: Simon Horman --- diff --git a/net/ipv4/ipvs/ip_vs_sync.c b/net/ipv4/ipvs/ip_vs_sync.c index cf5ed758ea1..45e9bd96c28 100644 --- a/net/ipv4/ipvs/ip_vs_sync.c +++ b/net/ipv4/ipvs/ip_vs_sync.c @@ -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 */