From: Ben Gras Date: Fri, 1 Oct 2010 14:39:04 +0000 (+0000) Subject: make the asynsend table size NPROCS-dependent. X-Git-Tag: v3.2.0~800 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=68de328ac186ae0b40960314a9701807f9f099a2;p=minix.git 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. --- 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;