summaryrefslogtreecommitdiffstats
path: root/kernel/padata.c
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2010-04-29 14:37:32 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2010-05-03 11:16:13 +0800
commit97e3d94aac1c3e95bd04d1b186479a4df3663ab8 (patch)
tree4cc049a6dfa84554279d39daca2db4dca0001751 /kernel/padata.c
parent8628e7c89075834fc7b44629d09ff4f9043af114 (diff)
downloadlinux-stable-97e3d94aac1c3e95bd04d1b186479a4df3663ab8.tar.gz
linux-stable-97e3d94aac1c3e95bd04d1b186479a4df3663ab8.tar.bz2
linux-stable-97e3d94aac1c3e95bd04d1b186479a4df3663ab8.zip
padata: Dont scale the parallel objects with the cpus
Scaling the maximum number of objects in the parallel codepath can lead to out of memory problems on bigsmp machines. Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/padata.c')
-rw-r--r--kernel/padata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/padata.c b/kernel/padata.c
index 0282478bc584..5085046d83fb 100644
--- a/kernel/padata.c
+++ b/kernel/padata.c
@@ -28,7 +28,7 @@
#include <linux/rcupdate.h>
#define MAX_SEQ_NR INT_MAX - NR_CPUS
-#define MAX_OBJ_NUM 10000 * NR_CPUS
+#define MAX_OBJ_NUM 1000
static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index)
{