From: Pavel Emelyanov Date: Fri, 19 Oct 2007 06:40:43 +0000 (-0700) Subject: Use task_pid_nr() in ip_vs_sync.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6651fd561bc6fbc688542e9a5bf070c6485eebe8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Sukadev Bhattiprolu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) add_wait_queue(&sync_wait, &wait); - set_sync_pid(state, current->pid); + set_sync_pid(state, task_pid_nr(current)); complete(tinfo->startup); /*