From owner-cvs-all@FreeBSD.ORG Wed Apr 13 22:31:21 2005 Return-Path: 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 327BC16A4CE; Wed, 13 Apr 2005 22:31:21 +0000 (GMT) Received: from mail.chesapeake.net (chesapeake.net [208.142.252.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8788843D5C; Wed, 13 Apr 2005 22:31:19 +0000 (GMT) (envelope-from jroberson@chesapeake.net) Received: from mail.chesapeake.net (localhost [127.0.0.1]) by mail.chesapeake.net (8.12.10/8.12.10) with ESMTP id j3DMVIen025259; Wed, 13 Apr 2005 18:31:18 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Received: from localhost (jroberson@localhost)j3DMVHki025256; Wed, 13 Apr 2005 18:31:17 -0400 (EDT) (envelope-from jroberson@chesapeake.net) X-Authentication-Warning: mail.chesapeake.net: jroberson owned process doing -bs Date: Wed, 13 Apr 2005 18:31:17 -0400 (EDT) From: Jeff Roberson To: Alfred Perlstein In-Reply-To: <20050413195741.GE60345@elvis.mu.org> Message-ID: <20050413182958.L28571@mail.chesapeake.net> References: <200504131059.j3DAxAUf039007@repoman.freebsd.org> <20050413195741.GE60345@elvis.mu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: Jeff Roberson cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/coda coda_vnops.c src/sys/compat/linux linux_getcwd.c src/sys/fs/devfs devfs_vnops.c src/sys/fs/hpfs hpfs_vnops.c src/sys/fs/msdosfs msdosfs_lookup.c src/sys/fs/nwfs nwfs_vnops X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 13 Apr 2005 22:31:21 -0000 On Wed, 13 Apr 2005, Alfred Perlstein wrote: > * Jeff Roberson [050413 03:59] wrote: > > jeff 2005-04-13 10:59:10 UTC > > > > FreeBSD src repository > > > > Modified files: > > sys/coda coda_vnops.c > > sys/compat/linux linux_getcwd.c > > Log: > > - Change all filesystems and vfs_cache to relock the dvp once the child is > > locked in the ISDOTDOT case. Se vfs_lookup.c r1.79 for details. > > Sorry to bumble into your way, but can you explain this? I thought > the lock order was always dvp->vp, doing a vp->dvp lock is a reversal > and can cause deadlock. I guess I'm missing something, can you explain > please? For ISDOTDOT dvp is really the child of vp. For example a/b/c b/.. is a, and a must be locked before b. So b must be unlocked before we can lock ..(a), and then b must be locked again. > > -- > - Alfred Perlstein > - email: bright@mu.org cell: 408-480-4684 >