aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_param.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1997-01-15 20:46:02 +0000
committerDavid Greenman <dg@FreeBSD.org>1997-01-15 20:46:02 +0000
commit649c409d03464841e3076cb812c938ce94d11cb8 (patch)
tree80b222a8d246fee7cd57a6c4ef76bc307b774810 /sys/kern/subr_param.c
parent8964f83c4adb1323479e85c6fb945e580d5e4b09 (diff)
downloadsrc-649c409d03464841e3076cb812c938ce94d11cb8.tar.gz
src-649c409d03464841e3076cb812c938ce94d11cb8.zip
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
Notes
Notes: svn path=/head/; revision=21737
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 209f8ef737cf..3738a581104c 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' */