diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-18 17:51:47 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-02-18 17:51:47 +0000 |
| commit | 735da6de88bd8f363e4183aee8fa60dbcdeb9549 (patch) | |
| tree | 9af5b7ac52ef152e33a8102134230bb550f98d92 /sys | |
| parent | 90a5520170c321d73d92bd9ef0fe274fccc3596f (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_mutex.c | 2 | ||||
| -rw-r--r-- | sys/kern/subr_turnstile.c | 2 | ||||
| -rw-r--r-- | sys/sys/mutex.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index a8abdb44a846..6a5e86a3ea7e 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) diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index a8abdb44a846..6a5e86a3ea7e 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.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) diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index f952b8e025f1..2e260b6aa59e 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -286,6 +286,7 @@ extern struct mtx Giant; */ extern int kern_giant_proc; extern int kern_giant_file; +extern int kern_giant_ucred; /* * Giant lock manipulation and clean exit macros. |
