From 68de328ac186ae0b40960314a9701807f9f099a2 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 1 Oct 2010 14:39:04 +0000 Subject: [PATCH] make the asynsend table size NPROCS-dependent. this is a fix for e.g. the situation where lots of processes die instantly, and PM has to send an asyn msg for each one to VFS, and panics if there are too many. there are likely more situations in which this table should be dependent on the no. of processes. reported by pikpik on #minix3. --- lib/libsys/asynsend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libsys/asynsend.c b/lib/libsys/asynsend.c index 7c942edb0..2a06f7d61 100644 --- a/lib/libsys/asynsend.c +++ b/lib/libsys/asynsend.c @@ -13,11 +13,12 @@ #include #include #include +#include #include #include -#define ASYN_NR 100 +#define ASYN_NR (2*_NR_PROCS) PRIVATE asynmsg_t msgtable[ASYN_NR]; PRIVATE int first_slot= 0, next_slot= 0;