diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-07-16 07:14:03 -0400 |
---|---|---|
committer | Sven Wegener <sven.wegener@stealer.net> | 2008-07-16 18:33:20 -0400 |
commit | 375c6bbabf210ded3151481ca1ac7f730903512b (patch) | |
tree | e5f092925e77fe7dec4b198eea6588944219c15f /net/ipv4/ipvs | |
parent | ba6fd85021dec97d58373d9aea4bea8fc24258be (diff) |
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 <sven.wegener@stealer.net>
Acked-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/ipv4/ipvs')
-rw-r--r-- | net/ipv4/ipvs/ip_vs_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipvs/ip_vs_sync.c b/net/ipv4/ipvs/ip_vs_sync.c index cf5ed758ea1f..45e9bd96c286 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) | |||
742 | ip_vs_sync_buff_release(sb); | 742 | ip_vs_sync_buff_release(sb); |
743 | } | 743 | } |
744 | 744 | ||
745 | msleep_interruptible(1000); | 745 | schedule_timeout_interruptible(HZ); |
746 | } | 746 | } |
747 | 747 | ||
748 | /* clean up the sync_buff queue */ | 748 | /* clean up the sync_buff queue */ |