summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-07-17 15:52:11 +0000
committertrasz <trasz@FreeBSD.org>2010-07-17 15:52:11 +0000
commite2cd3ad7164090750d72ed1ccb2af7cd6d22446a (patch)
tree2753c6405421f777e5cdc13bb6613bcfffa8b6f4 /sys/compat/svr4
parent1d5b5bc65ce9d4d3ac3fabc0fca0c43c30b471e8 (diff)
downloadFreeBSD-src-e2cd3ad7164090750d72ed1ccb2af7cd6d22446a.zip
FreeBSD-src-e2cd3ad7164090750d72ed1ccb2af7cd6d22446a.tar.gz
Remove proc locking, it's not needed after r210132.
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r--sys/compat/svr4/svr4_filio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/compat/svr4/svr4_filio.c b/sys/compat/svr4/svr4_filio.c
index 58c6417..ca85653 100644
--- a/sys/compat/svr4/svr4_filio.c
+++ b/sys/compat/svr4/svr4_filio.c
@@ -64,12 +64,8 @@ svr4_sys_poll(td, uap)
int idx = 0, cerr;
u_long siz;
- PROC_LOCK(td->td_proc);
- if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE) {
- PROC_UNLOCK(td->td_proc);
+ if (uap->nfds > maxfilesperproc && uap->nfds > FD_SETSIZE)
return (EINVAL);
- }
- PROC_UNLOCK(td->td_proc);
pa.fds = uap->fds;
pa.nfds = uap->nfds;
OpenPOWER on IntegriCloud