diff options
author | jhb <jhb@FreeBSD.org> | 2003-04-23 18:48:55 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-04-23 18:48:55 +0000 |
commit | 2958cf621b0f79e611c2c6556400dc159aea37b0 (patch) | |
tree | 42a6e2263d4ee90b5fdbb81feaee59dc2ac343e5 /sys/kern/kern_resource.c | |
parent | a0bf3a3e6f75678fc18fe190becfec4c8b25eb98 (diff) | |
download | FreeBSD-src-2958cf621b0f79e611c2c6556400dc159aea37b0.zip FreeBSD-src-2958cf621b0f79e611c2c6556400dc159aea37b0.tar.gz |
Remove Giant from [gs]etpriority().
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r-- | sys/kern/kern_resource.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 2623bf1..196aeee 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -94,8 +94,6 @@ getpriority(td, uap) int error = 0; struct ksegrp *kg; - mtx_lock(&Giant); - switch (uap->which) { case PRIO_PROCESS: if (uap->who == 0) @@ -168,7 +166,6 @@ getpriority(td, uap) if (low == PRIO_MAX + 1 && error == 0) error = ESRCH; td->td_retval[0] = low; - mtx_unlock(&Giant); return (error); } @@ -192,8 +189,6 @@ setpriority(td, uap) register struct proc *p; int found = 0, error = 0; - mtx_lock(&Giant); - switch (uap->which) { case PRIO_PROCESS: if (uap->who == 0) { @@ -260,7 +255,6 @@ setpriority(td, uap) } if (found == 0 && error == 0) error = ESRCH; - mtx_unlock(&Giant); return (error); } |