From owner-freebsd-current Tue Apr 9 12: 6:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by hub.freebsd.org (Postfix) with ESMTP id 7B17B37B400 for ; Tue, 9 Apr 2002 12:06:25 -0700 (PDT) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id g39J6JC58228; Tue, 9 Apr 2002 15:06:20 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Tue, 9 Apr 2002 15:06:19 -0400 (EDT) From: Jeff Roberson To: Dag-Erling Smorgrav Cc: current@freebsd.org Subject: Re: LOOKUP_SHARED is default now In-Reply-To: Message-ID: <20020409150239.B38158-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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