Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6651fd56 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Linus Torvalds
Browse files

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: default avatarPavel Emelyanov <xemul@openvz.org>
Acked-by: default avatarSukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 457c2510
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

	/*