aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2008-03-16 06:21:30 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2008-03-16 06:21:30 +0000
commitc9370ff4d0c3d75d77127b8da2798d87f48268b1 (patch)
treeabb94b15894e30e305aecbb46933267e61066559 /sys/sys
parenta9a11568ff0e11dc6d06c60c46ff6074f53d6c5e (diff)
downloadsrc-c9370ff4d0c3d75d77127b8da2798d87f48268b1.tar.gz
src-c9370ff4d0c3d75d77127b8da2798d87f48268b1.zip
Properly set size of the file_zone to match kern.maxfiles parameter.
Otherwise the parameter is no-op, since zone by default limits number of descriptors to some 12K entries. Attempt to allocate more ends up sleeping on zonelimit. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=177232
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/eventhandler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h
index 00d124d91e0f..2cd60564db81 100644
--- a/sys/sys/eventhandler.h
+++ b/sys/sys/eventhandler.h
@@ -207,6 +207,7 @@ EVENTHANDLER_DECLARE(thread_fini, thread_fini_fn);
typedef void (*uma_zone_chfn)(void *);
EVENTHANDLER_DECLARE(nmbclusters_change, uma_zone_chfn);
EVENTHANDLER_DECLARE(maxsockets_change, uma_zone_chfn);
+EVENTHANDLER_DECLARE(maxfiles_change, uma_zone_chfn);
typedef void(*schedtail_fn)(void *, struct proc *);
EVENTHANDLER_DECLARE(schedtail, schedtail_fn);