summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-12-12 14:03:04 +0000
committerkib <kib@FreeBSD.org>2008-12-12 14:03:04 +0000
commitba6c22347a989f15ec369d59b907fec7bb3a0e91 (patch)
tree2c5fb75a5bb86c134f817d4cd11466956249cd52 /sys/kern/kern_sysctl.c
parente7474699031b041ffcf3a7c7165b2f7af248c413 (diff)
downloadFreeBSD-src-ba6c22347a989f15ec369d59b907fec7bb3a0e91.zip
FreeBSD-src-ba6c22347a989f15ec369d59b907fec7bb3a0e91.tar.gz
Uio_yield() already does DROP_GIANT/PICKUP_GIANT, no need to repeat this
around the call. Noted by: bde
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 3e9878e..a094d42 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1423,9 +1423,7 @@ userland_sysctl(struct thread *td, int *name, u_int namelen, void *old,
error = sysctl_root(0, name, namelen, &req);
if (error != EAGAIN)
break;
- DROP_GIANT();
uio_yield();
- PICKUP_GIANT();
}
if (req.lock == REQ_WIRED && req.validlen > 0)
OpenPOWER on IntegriCloud