From 21c2d460fc0803cf7091d2d64bbec0c1bc96e45f Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 8 Jan 2005 04:56:38 +0000 Subject: 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. --- sys/fs/pseudofs/pseudofs_vncache.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys') 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) -- cgit v1.1