summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_param.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-01-15 20:46:02 +0000
committerdg <dg@FreeBSD.org>1997-01-15 20:46:02 +0000
commit78afd808d565ede1deb869a7d1d7885b10db6033 (patch)
tree80b222a8d246fee7cd57a6c4ef76bc307b774810 /sys/kern/subr_param.c
parent3f900d53fcdc1fa8bc234e63452b1b782b255ceb (diff)
downloadFreeBSD-src-78afd808d565ede1deb869a7d1d7885b10db6033.zip
FreeBSD-src-78afd808d565ede1deb869a7d1d7885b10db6033.tar.gz
Fix bug related to map entry allocations where a sleep might be attempted
when allocating memory for network buffers at interrupt time. This is due to inadequate checking for the new mcl_map. Fixed by merging mb_map and mcl_map into a single mb_map. Reviewed by: wollman
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r--sys/kern/subr_param.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index 209f8ef..3738a58 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -100,8 +100,8 @@ int extravnodes = EXTRAVNODES; /* spare vnodes to allocate */
#endif
int nmbclusters = NMBCLUSTERS;
-/* allocate same amount of virtual address space for mbufs XXX */
-int nmbufs = NMBCLUSTERS * (MCLBYTES / MSIZE);
+/* allocate 1/4th amount of virtual address space for mbufs XXX */
+int nmbufs = NMBCLUSTERS * 4;
int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */
OpenPOWER on IntegriCloud