diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-10-19 02:40:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:43 -0400 |
commit | 6651fd561bc6fbc688542e9a5bf070c6485eebe8 (patch) | |
tree | 413e8f3f0411b88b66b0f60eea9e7c9331b943e9 /net | |
parent | 457c25107b83bc6456b3a18a25511418dc25da69 (diff) |
Use task_pid_nr() in ip_vs_sync.c
The sync_master_pid and sync_backup_pid are set in set_sync_pid() and are
used later for set/not-set checks and in printk. So it is safe to use the
global pid value in this case.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net')
-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 3b0d32291d5e..c99f2a33fb9e 100644 --- a/net/ipv4/ipvs/ip_vs_sync.c +++ b/net/ipv4/ipvs/ip_vs_sync.c | |||
@@ -794,7 +794,7 @@ static int sync_thread(void *startup) | |||
794 | 794 | ||
795 | add_wait_queue(&sync_wait, &wait); | 795 | add_wait_queue(&sync_wait, &wait); |
796 | 796 | ||
797 | set_sync_pid(state, current->pid); | 797 | set_sync_pid(state, task_pid_nr(current)); |
798 | complete(tinfo->startup); | 798 | complete(tinfo->startup); |
799 | 799 | ||
800 | /* | 800 | /* |