From owner-cvs-src@FreeBSD.ORG Sat Aug 23 01:52:47 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2870416A546; Sat, 23 Aug 2003 01:52:46 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8539B440FB; Fri, 22 Aug 2003 23:53:53 -0700 (PDT) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7N6r30U089801; Fri, 22 Aug 2003 23:53:23 -0700 (PDT) (envelope-from alc@repoman.freebsd.org) Received: (from alc@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7N6qbaO089796; Fri, 22 Aug 2003 23:52:37 -0700 (PDT) Message-Id: <200308230652.h7N6qbaO089796@repoman.freebsd.org> From: Alan Cox Date: Fri, 22 Aug 2003 23:52:32 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/vm vm_fault.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2003 08:52:48 -0000 alc 2003/08/22 23:52:32 PDT FreeBSD src repository Modified files: sys/vm vm_fault.c Log: To implement the sequential access optimization, vm_fault() may need to reacquire the "first" object's lock while a backing object's lock is held. Since this is a lock-order reversal, vm_fault() uses trylock to acquire the first object's lock, skipping the sequential access optimization in the unlikely event that the trylock fails. Revision Changes Path 1.175 +10 -8 src/sys/vm/vm_fault.c