mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
SLUB: Allow full duplication of kmalloc array for 390
Commit 756dee7587
("SLUB: Get rid of dynamic DMA
kmalloc cache allocation") makes S390 run out of kmalloc caches. Increase the
number of kmalloc caches to a safe size.
Cc: <stable@kernel.org> [ .33 and .34 ]
Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Tested-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
parent
73367bd8ee
commit
0f1f694260
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ struct kmem_cache {
|
||||||
#ifdef CONFIG_ZONE_DMA
|
#ifdef CONFIG_ZONE_DMA
|
||||||
#define SLUB_DMA __GFP_DMA
|
#define SLUB_DMA __GFP_DMA
|
||||||
/* Reserve extra caches for potential DMA use */
|
/* Reserve extra caches for potential DMA use */
|
||||||
#define KMALLOC_CACHES (2 * SLUB_PAGE_SHIFT - 6)
|
#define KMALLOC_CACHES (2 * SLUB_PAGE_SHIFT)
|
||||||
#else
|
#else
|
||||||
/* Disable DMA functionality */
|
/* Disable DMA functionality */
|
||||||
#define SLUB_DMA (__force gfp_t)0
|
#define SLUB_DMA (__force gfp_t)0
|
||||||
|
|
Loading…
Reference in a new issue