From mboxrd@z Thu Jan 1 00:00:00 1970 From: sukadev@us.ibm.com Subject: Re: [PATCH] Use task_pid_nr() in ip_vs_sync.c Date: Wed, 29 Aug 2007 14:50:55 -0700 Message-ID: <20070829215055.GD18542@us.ibm.com> References: <46D57508.9040401@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Oleg Nesterov , Linux Containers , Linux Kernel Mailing List , Linux Netdev List To: Pavel Emelyanov Return-path: Received: from e3.ny.us.ibm.com ([32.97.182.143]:43403 "EHLO e3.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754615AbXH2Vu5 (ORCPT ); Wed, 29 Aug 2007 17:50:57 -0400 Content-Disposition: inline In-Reply-To: <46D57508.9040401@openvz.org> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Pavel Emelianov [xemul@openvz.org] wrote: | 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 | | --- | | diff --git a/net/ipv4/ipvs/ip_vs_sync.c b/net/ipv4/ipvs/ip_vs_sync.c | index 959c08d..d0798a5 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); | | /*