summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs_vncache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/pseudofs/pseudofs_vncache.c')
-rw-r--r--sys/fs/pseudofs/pseudofs_vncache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c
index 31b60e1..49258ab 100644
--- a/sys/fs/pseudofs/pseudofs_vncache.c
+++ b/sys/fs/pseudofs/pseudofs_vncache.c
@@ -222,6 +222,7 @@ pfs_exit(void *arg, struct proc *p)
{
struct pfs_vdata *pvd, *prev;
+ mtx_lock(&Giant);
mtx_lock(&pfs_vncache_mutex);
/*
* The double loop is necessary because vgone() indirectly
@@ -239,6 +240,7 @@ pfs_exit(void *arg, struct proc *p)
break;
}
mtx_unlock(&pfs_vncache_mutex);
+ mtx_unlock(&Giant);
}
/*
OpenPOWER on IntegriCloud