Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2002 23:24:25 -0700
From:      Alfred Perlstein <bright@mu.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Richard Sharpe <rsharpe@ns.aus.com>, freebsd-hackers@freebsd.org
Subject:   Re: File locking, closes and performance in a distributed filesystemenv
Message-ID:  <20020515062425.GD1585@elvis.mu.org>
In-Reply-To: <3CE1F8E2.868B2965@mindspring.com>
References:  <Pine.LNX.4.33.0205151117270.5078-100000@ns.aus.com> <3CE1F8E2.868B2965@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Terry Lambert <tlambert2@mindspring.com> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515062425.GD1585>