projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba6fd85
)
ipvs: Use schedule_timeout_interruptible() instead of msleep_interruptible()
author
Sven Wegener
<sven.wegener@stealer.net>
Wed, 16 Jul 2008 11:14:03 +0000
(11:14 +0000)
committer
Sven Wegener
<sven.wegener@stealer.net>
Wed, 16 Jul 2008 22:33:20 +0000
(22:33 +0000)
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>
net/ipv4/ipvs/ip_vs_sync.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ipvs/ip_vs_sync.c
b/net/ipv4/ipvs/ip_vs_sync.c
index cf5ed758ea1fa0abcc7cb45ac0272a2775b47c3e..45e9bd96c286fd4bb11148c0c69522e36d5fbcd3 100644
(file)
--- 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 */