vn_fullpath: 0xc85e24a0 is not locked but should be
Jun Kuriyama
kuriyama at imgsrc.co.jp
Sun Dec 14 19:07:35 PST 2003
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 <kuriyama at imgsrc.co.jp> // IMG SRC, Inc.
<kuriyama at FreeBSD.org> // FreeBSD Project
More information about the freebsd-current
mailing list