From owner-freebsd-hackers Tue May 14 23:24:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 378B837B409 for ; Tue, 14 May 2002 23:24:25 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id 11ADBAE2F7; Tue, 14 May 2002 23:24:25 -0700 (PDT) Date: Tue, 14 May 2002 23:24:25 -0700 From: Alfred Perlstein To: Terry Lambert Cc: Richard Sharpe , freebsd-hackers@freebsd.org Subject: Re: File locking, closes and performance in a distributed filesystemenv Message-ID: <20020515062425.GD1585@elvis.mu.org> References: <3CE1F8E2.868B2965@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CE1F8E2.868B2965@mindspring.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Terry Lambert [020514 22:58] wrote: > Richard Sharpe wrote: > > Hmmm, I wasn't very clear ... > > > > What I am proposing is a 'simple' fix that simply changes > > > > p->p_flag |= P_ADVLOCK; > > > > to > > > > fp->l_flag |= P_ADVLOCK; As Terry stated you can't do that, however you could cache that the VNODE has a lock, that would reduce the requirement for calling the ADVLOCK VOP. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message