From owner-cvs-all@FreeBSD.ORG Thu Aug 24 20:48:35 2006 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4218D16A5A5; Thu, 24 Aug 2006 20:48:35 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54EFC43D58; Thu, 24 Aug 2006 20:48:34 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k7OKmPmr069616; Thu, 24 Aug 2006 16:48:26 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Julian Elischer Date: Thu, 24 Aug 2006 16:47:55 -0400 User-Agent: KMail/1.9.1 References: <200608241016.k7OAG1VE058083@repoman.freebsd.org> <44EE0906.40705@elischer.org> In-Reply-To: <44EE0906.40705@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608241647.56391.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Thu, 24 Aug 2006 16:48:26 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1726/Thu Aug 24 14:45:50 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@freebsd.org, src-committers@freebsd.org, Konstantin Belousov , cvs-all@freebsd.org Subject: Re: cvs commit: src/share/man/man9 lock.9 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 20:48:35 -0000 On Thursday 24 August 2006 16:16, Julian Elischer wrote: > Konstantin Belousov wrote: > > >kib 2006-08-24 10:16:01 UTC > > > > FreeBSD src repository > > > > Modified files: (Branch: RELENG_6) > > share/man/man9 lock.9 > > Log: > > MFC rev.1.14: > > Note that LK_UPGRADE may drop the shared lock before taking the > > exclusive one. > > > > > > > excuse my ignorance but I though that the whole aim of an upgrade was to > make sure that > you did NOT drop it before getting the exclusive lock..( or it fails and > you back out and retry) This is why sx and rw locks only have a try_upgrade and not a blocking upgrade. The calling code can then do a sunlock and blocking xlock and make sure they redo any needed checks, etc. > > Reviewed and edited by: tegge > > Approved by: pjd (mentor) > > > > Revision Changes Path > > 1.12.2.2 +2 -0 src/share/man/man9/lock.9 > > > > > -- John Baldwin