Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261791AbVDCPVJ (ORCPT ); Sun, 3 Apr 2005 11:21:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261794AbVDCPVI (ORCPT ); Sun, 3 Apr 2005 11:21:08 -0400 Received: from orion.netbank.com.br ([200.203.199.90]:49416 "EHLO orion.netbank.com.br") by vger.kernel.org with ESMTP id S261791AbVDCPVE (ORCPT ); Sun, 3 Apr 2005 11:21:04 -0400 Date: Sun, 3 Apr 2005 12:21:01 -0300 From: Arnaldo Carvalho de Melo To: "David S. Miller" , James Bottomley Cc: Andrew Morton , Linus Torvalds , Linux Kernel Subject: Re: [PATCH] fix boot hang on some architectures Message-ID: <20050403152101.GC640@conectiva.com.br> Mail-Followup-To: Arnaldo Carvalho de Melo , "David S. Miller" , James Bottomley , Andrew Morton , Linus Torvalds , Linux Kernel References: <1112471164.5786.23.camel@mulgrave> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1112471164.5786.23.camel@mulgrave> X-Url: http://advogato.org/person/acme User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1246 Lines: 38 Em Sat, Apr 02, 2005 at 01:46:03PM -0600, James Bottomley escreveu: > Well, this is a brown paper bag for someone. The new protocol /me using such bag now :( Thanks a lot for the fix. David, Please apply. > registration locking uses a rwlock to limit access to the protocol list. > Unfortunately, the initialisation: > > static rwlock_t proto_list_lock; > > Only works to initialise the lock as unlocked on platforms whose unlock > signal is all zeros. On other platforms, they think it's already locked > and hang forever. > > Signed-off-by: James Bottomley > > > ===== net/core/sock.c 1.67 vs edited ===== > --- 1.67/net/core/sock.c 2005-03-26 17:04:35 -06:00 > +++ edited/net/core/sock.c 2005-04-02 13:37:20 -06:00 > @@ -1352,7 +1352,7 @@ > > EXPORT_SYMBOL(sk_common_release); > > -static rwlock_t proto_list_lock; > +static DEFINE_RWLOCK(proto_list_lock); > static LIST_HEAD(proto_list); > > int proto_register(struct proto *prot, int alloc_slab) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/