Skip to content

Commit

Permalink
Use task_pid_nr() in ip_vs_sync.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Emelyanov authored and Linus Torvalds committed Oct 19, 2007
1 parent 457c251 commit 6651fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ipvs/ip_vs_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ static int sync_thread(void *startup)

add_wait_queue(&sync_wait, &wait);

set_sync_pid(state, current->pid);
set_sync_pid(state, task_pid_nr(current));
complete(tinfo->startup);

/*
Expand Down

0 comments on commit 6651fd5

Please sign in to comment.