diff options
author | kib <kib@FreeBSD.org> | 2008-12-12 14:03:04 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-12-12 14:03:04 +0000 |
commit | ba6c22347a989f15ec369d59b907fec7bb3a0e91 (patch) | |
tree | 2c5fb75a5bb86c134f817d4cd11466956249cd52 | |
parent | e7474699031b041ffcf3a7c7165b2f7af248c413 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/kern/kern_sysctl.c | 2 |
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) |