Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 15:06:19 -0400 (EDT)
From:      Jeff Roberson <jroberson@chesapeake.net>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        current@freebsd.org
Subject:   Re: LOOKUP_SHARED is default now
Message-ID:  <20020409150239.B38158-100000@mail.chesapeake.net>
In-Reply-To: <xzpelhp3y7n.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help


On 9 Apr 2002, Dag-Erling Smorgrav wrote:

>
> Considering that neither LOOKUP_SHARED nor LOOKUP_EXCLUSIVE is
> documented anywhere, could you enlighten us as to what, exactly, they
> do?
>

Right, sorry.  There was some minimal discussion about this on arch quite
a while ago.  Basically, it allows namei to return leafs locked with
shared locks instead of exclusive locks when a flag is set.

This not only reduces contention, but also the number of exclusive locks
that are floating around in the system.

Jeff


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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