summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-02-18 17:51:47 +0000
committerdillon <dillon@FreeBSD.org>2002-02-18 17:51:47 +0000
commit7c646750137eaf238d77c3bef36b86093eff528f (patch)
tree9af5b7ac52ef152e33a8102134230bb550f98d92 /sys/kern/kern_mutex.c
parentdc86e4f972dd15985aa0639ee83b2842435946f1 (diff)
downloadFreeBSD-src-7c646750137eaf238d77c3bef36b86093eff528f.zip
FreeBSD-src-7c646750137eaf238d77c3bef36b86093eff528f.tar.gz
Add kern_giant_ucred to instrument Giant around ucred related operations
such a getgid(), setgid(), etc...
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index a8abdb4..6a5e86a 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -709,8 +709,10 @@ SYSCTL_INT(_kern_giant, OID_AUTO, all, CTLFLAG_RW, &kern_giant_all, 0, "");
int kern_giant_proc = 1; /* Giant around PROC locks */
int kern_giant_file = 1; /* Giant around struct file & filedesc */
+int kern_giant_ucred = 1; /* Giant around ucred */
SYSCTL_INT(_kern_giant, OID_AUTO, proc, CTLFLAG_RW, &kern_giant_proc, 0, "");
SYSCTL_INT(_kern_giant, OID_AUTO, file, CTLFLAG_RW, &kern_giant_file, 0, "");
+SYSCTL_INT(_kern_giant, OID_AUTO, ucred, CTLFLAG_RW, &kern_giant_ucred, 0, "");
int
mtx_lock_giant(int sysctlvar)
OpenPOWER on IntegriCloud