From owner-cvs-src-old@FreeBSD.ORG Wed Jan 28 18:55:08 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EBD510656C8 for ; Wed, 28 Jan 2009 18:55:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2B87D8FC16 for ; Wed, 28 Jan 2009 18:55:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0SIt8Lw091598 for ; Wed, 28 Jan 2009 18:55:08 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0SIt80d091597 for cvs-src-old@freebsd.org; Wed, 28 Jan 2009 18:55:08 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200901281855.n0SIt80d091597@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Wed, 28 Jan 2009 18:54:56 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/cd9660 cd9660_lookup.c cd9660_node.c cd9660_node.h cd9660_vfsops.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 18:55:08 -0000 jhb 2009-01-28 18:54:56 UTC FreeBSD src repository Modified files: sys/fs/cd9660 cd9660_lookup.c cd9660_node.c cd9660_node.h cd9660_vfsops.c Log: SVN rev 187838 on 2009-01-28 18:54:56Z by jhb Mark cd9660 MPSAFE and add support for using shared vnode locks during pathname lookups. - Remove 'i_offset' and 'i_ino' from the ISO node structure and replace them with local variables in the lookup routine instead. - Cache a copy of 'i_diroff' for use during a lookup in a local variable. - Save a copy of the found directory entry in a malloc'd buffer after a successfull lookup before getting the vnode. This allows us to release the buffer holding the directory block before calling vget() which otherwise resulted in a LOR between "bufwait" and the vnode lock. - Use an inlined version of vn_vget_ino() to handle races with .. lookups. I had to inline the code here since cd9660 uses an internal vget routine to save a disk I/O that would otherwise re-read the directory block. - Honor the requested locking flags during lookups to allow for shared locking. - Honor the requested locking flags passed to VFS_ROOT() and VFS_VGET() similar to UFS. - Don't make every ISO 9660 vnode hold a reference on the vnode of the underlying device vnode of the mountpoint. The mountpoint already holds a suitable reference. Revision Changes Path 1.46 +95 -43 src/sys/fs/cd9660/cd9660_lookup.c 1.61 +0 -3 src/sys/fs/cd9660/cd9660_node.c 1.35 +0 -2 src/sys/fs/cd9660/cd9660_node.h 1.160 +19 -2 src/sys/fs/cd9660/cd9660_vfsops.c