From owner-freebsd-current@FreeBSD.ORG Sun Dec 14 19:07:35 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B6D116A4CF; Sun, 14 Dec 2003 19:07:35 -0800 (PST) Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D28EE43D35; Sun, 14 Dec 2003 19:07:32 -0800 (PST) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id A0506284095; Mon, 15 Dec 2003 12:07:31 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id 98F9028409F; Mon, 15 Dec 2003 12:07:30 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id 4FB9D1E4A63; Mon, 15 Dec 2003 12:07:30 +0900 (JST) Date: Mon, 15 Dec 2003 12:07:30 +0900 Message-ID: <7mhe0222z1.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: Robert Watson In-Reply-To: References: <7m7k123dci.wl@black.imgsrc.co.jp> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS snapshot-20020531 cc: Current cc: jhb@FreeBSD.org Subject: Re: vn_fullpath: 0xc85e24a0 is not locked but should be X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2003 03:07:35 -0000 At Thu, 11 Dec 2003 23:14:50 -0500 (EST), Robert Watson wrote: > Index: procfs.c > =================================================================== > RCS file: /home/ncvs/src/sys/fs/procfs/procfs.c,v > retrieving revision 1.9 > diff -u -r1.9 procfs.c > --- procfs.c 17 Apr 2003 22:12:12 -0000 1.9 > +++ procfs.c 12 Dec 2003 04:13:10 -0000 > @@ -70,7 +70,9 @@ > char *fullpath = "unknown"; > char *freepath = NULL; > > + vn_lock(p->p_textvp, LK_EXCLUSIVE | LK_RETRY, td); > vn_fullpath(td, p->p_textvp, &fullpath, &freepath); > + VOP_UNLOCK(p->p_textvp, 0, td); > sbuf_printf(sb, "%s", fullpath); > if (freepath) > free(freepath, M_TEMP); I rebuilt my kernel with your patch and enable DEBUG_VFS_LOCKS again. I'll post the result after using my desktop tomorrow. -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project