Date: Wed, 22 Feb 2006 17:24:54 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/pseudofs pseudofs_vnops.c Message-ID: <200602221724.k1MHOsjV068019@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2006-02-22 17:24:54 UTC
FreeBSD src repository
Modified files:
sys/fs/pseudofs pseudofs_vnops.c
Log:
Change pfs_visible() to optionally return a pointer to the process
associated with the passed in pfs_node. If it does return a pointer, it
keeps the process locked. This allows a lot of places that were calling
pfind() again right after pfs_visible() to not have to do that and avoids
races since we don't drop the proc lock just to turn around and lock it
again. This will become more important with future changes to fix races
between procfs/ptrace and exit(2). Also, removed a duplicate pfs_visible()
call in pfs_getextattr().
Reviewed by: des
MFC after: 1 week
Revision Changes Path
1.58 +44 -50 src/sys/fs/pseudofs/pseudofs_vnops.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602221724.k1MHOsjV068019>
