]> Zhao Yanbai Git Server - minix.git/commitdiff
VFS/libblockdriver: enlarge threads stacks for ASR 73/3173/1
authorDavid van Moolenbroek <david@minix3.org>
Fri, 4 Sep 2015 01:24:52 +0000 (03:24 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 17 Sep 2015 17:14:53 +0000 (17:14 +0000)
Change-Id: If4e858bc2dbb2c69850cd265ff612bd5a6119bd3

minix/lib/libblockdriver/const.h
minix/servers/vfs/worker.c

index 1b3495bfa798fae74f1075cfd2daf01da4edcca1..4bba78001f1f26b1975e618c82122aedf7366fd3 100644 (file)
@@ -2,7 +2,11 @@
 #define _BLOCKDRIVER_CONST_H
 
 /* Thread stack size. */
+#ifdef _MINIX_MAGIC
+#define STACK_SIZE     32768
+#else
 #define STACK_SIZE     8192
+#endif
 
 /* Maximum number of devices supported. */
 #define MAX_DEVICES    BLOCKDRIVER_MAX_DEVICES
index e85d0d2beb42f707f84b612c558fc72c62d337b7..0146be880c6384942cbb74507d0498ee634a8a5a 100644 (file)
@@ -11,7 +11,9 @@ static unsigned int pending;
 static unsigned int busy;
 static int block_all;
 
-#ifdef MKCOVERAGE
+#if defined(_MINIX_MAGIC)
+# define TH_STACKSIZE (64 * 1024)
+#elif defined(MKCOVERAGE)
 # define TH_STACKSIZE (40 * 1024)
 #else
 # define TH_STACKSIZE (28 * 1024)