Commit 97e3d94aac1c3e95bd04d1b186479a4df3663ab8

Authored by Steffen Klassert
Committed by Herbert Xu
1 parent 8628e7c890

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -28,7 +28,7 @@
28 28 #include <linux/rcupdate.h>
29 29  
30 30 #define MAX_SEQ_NR INT_MAX - NR_CPUS
31   -#define MAX_OBJ_NUM 10000 * NR_CPUS
  31 +#define MAX_OBJ_NUM 1000
32 32  
33 33 static int padata_index_to_cpu(struct parallel_data *pd, int cpu_index)
34 34 {