Remove Giant from [gs]etpriority().

This commit is contained in:
jhb 2003-04-23 18:48:55 +00:00
parent a0bf3a3e6f
commit 2958cf621b

View File

@ -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);
}