summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2008-03-19 07:33:16 +0000
committerjeff <jeff@FreeBSD.org>2008-03-19 07:33:16 +0000
commitd4862a02d2a48532593512bf78aafae99ce4789e (patch)
tree4866927edfd735bf4e170ef60142f624e5fdccf0 /sys/kern/sys_generic.c
parent2023a8c5fd1af947310dcb9ad7c90b81f08de092 (diff)
downloadFreeBSD-src-d4862a02d2a48532593512bf78aafae99ce4789e.zip
FreeBSD-src-d4862a02d2a48532593512bf78aafae99ce4789e.tar.gz
- Remove stale comment.
- In the last revision the code was changed to use maxfilesperproc rather than the per-process file limit to restrict the size of the poll array. This eliminates a significant source of process lock contention in multithreaded programs and is cheaper. This had been committed with the wrong batch of changes.
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r--sys/kern/sys_generic.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index 209e5a9..2f5b2db 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -1005,14 +1005,6 @@ poll(td, uap)
size_t ni;
nfds = uap->nfds;
-
- /*
- * This is kinda bogus. We have fd limits, but that is not
- * really related to the size of the pollfd array. Make sure
- * we let the process use at least FD_SETSIZE entries and at
- * least enough for the current limits. We want to be reasonably
- * safe, but not overly restrictive.
- */
if (nfds > maxfilesperproc && nfds > FD_SETSIZE)
return (EINVAL);
ni = nfds * sizeof(struct pollfd);
OpenPOWER on IntegriCloud