From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Subject: Re: [PATCH 2/2] IPVS netns shutdown/startup dead-lock (Take III) Date: Wed, 5 Oct 2011 06:15:55 +0900 Message-ID: <20111004211554.GB11987@verge.net.au> References: <1317711216-8416-1-git-send-email-hans.schillstrom@ericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Hans Schillstrom , wensong@linux-vs.org, lvs-devel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, hans@schillstrom.com To: Julian Anastasov Return-path: Content-Disposition: inline In-Reply-To: Sender: lvs-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, Oct 04, 2011 at 10:40:29AM +0300, Julian Anastasov wrote: > > Hello, > > On Tue, 4 Oct 2011, Hans Schillstrom wrote: > > > From: Hans Schillstrom > > > > ip_vs_mutext is used by both netns shutdown code and startup > > and both implicit uses sk_lock-AF_INET mutex. > > > > cleanup CPU-1 startup CPU-2 > > ip_vs_dst_event() ip_vs_genl_set_cmd() > > sk_lock-AF_INET __ip_vs_mutex > > sk_lock-AF_INET > > __ip_vs_mutex > > * DEAD LOCK * > > > > A new mutex placed in ip_vs netns struct called sync_mutex is added. > > > > Comments from Julian and Simon added. > > This patch has been running for more than 3 month now and it seems to work. > > > > Ver. 3 > > IP_VS_SO_GET_DAEMON in do_ip_vs_get_ctl protected by sync_mutex > > instead of __ip_vs_mutex as sugested by Julian. > > > > Signed-off-by: Hans Schillstrom > > Looks good to me, with one extra empty line in > start_sync_thread > > Acked-by: Julian Anastasov Thanks, I will apply this change.