summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs_vncache.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-08 04:56:38 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-08 04:56:38 +0000
commit21c2d460fc0803cf7091d2d64bbec0c1bc96e45f (patch)
tree6eba34e611f6855b00be0a97f9e8bf1075087f54 /sys/fs/pseudofs/pseudofs_vncache.c
parentafca6a6239c4512281cf6f6df54151e522cee3f7 (diff)
downloadFreeBSD-src-21c2d460fc0803cf7091d2d64bbec0c1bc96e45f.zip
FreeBSD-src-21c2d460fc0803cf7091d2d64bbec0c1bc96e45f.tar.gz
Annotate that pfs_exit() always acquires and releases two mutexes for
every process exist, even if procfs isn't mounted. And one of those mutexes is Giant. No immediate thoughts on fixing this.
Diffstat (limited to 'sys/fs/pseudofs/pseudofs_vncache.c')
-rw-r--r--sys/fs/pseudofs/pseudofs_vncache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c
index 7bdf823..4ea4e1e 100644
--- a/sys/fs/pseudofs/pseudofs_vncache.c
+++ b/sys/fs/pseudofs/pseudofs_vncache.c
@@ -215,6 +215,10 @@ pfs_vncache_free(struct vnode *vp)
/*
* Free all vnodes associated with a defunct process
+ *
+ * XXXRW: It is unfortunate that pfs_exit() always acquires and releases two
+ * mutexes (one of which is Giant) for every process exit, even if procfs
+ * isn't mounted.
*/
static void
pfs_exit(void *arg, struct proc *p)
OpenPOWER on IntegriCloud