From: "J. Bruce Fields" Subject: Re: Portmap - was Re: Does mountd/statd really need to listen on a privileged port?? Date: Thu, 26 Apr 2007 22:22:46 -0400 Message-ID: <20070427022246.GB19179@fieldses.org> References: <17958.48121.280256.493824@notabene.brown> <20070424171708.GA7936@infradead.org> <462E43CC.6040806@RedHat.com> <200704251056.03664.olaf.kirch@oracle.com> <46312615.2090307@RedHat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Neil Brown , Christoph Hellwig , Matthias Koenig , nfs@lists.sourceforge.net, Javier Fern?ndez-Sanguino Pe?a , Olaf Kirch , anibal@debian.org To: Steve Dickson Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1HhG73-0003Ix-NW for nfs@lists.sourceforge.net; Thu, 26 Apr 2007 19:23:09 -0700 Received: from mail.fieldses.org ([66.93.2.214] helo=fieldses.org) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1HhG76-0000W9-5t for nfs@lists.sourceforge.net; Thu, 26 Apr 2007 19:23:12 -0700 In-Reply-To: <46312615.2090307@RedHat.com> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net On Thu, Apr 26, 2007 at 06:22:13PM -0400, Steve Dickson wrote: > Olaf Kirch wrote: > > mutex_lock(&clntraw_lock); > > if (clp == NULL) { > > mutex_unlock(&clntraw_lock); > > return (RPC_FAILED); > > } > > mutex_unlock(&clntraw_lock); > Look again... clp is pointing to global data... so locks > are needed... We don't touch that global data here--since we don't deference clp in that fragment, what it points to shouldn't matter. --b. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs