summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>2016-01-28 09:47:21 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2016-01-28 09:47:21 +1100
commit73a00a6f13c7056a9df78656768a854c893d9e7c (patch)
treea7aae8e4634c2d618682d6329939c7e46934f3fd
parent2d5ccad2aec02797f2697b48dfadc6614e68e357 (diff)
downloadlinux-next-73a00a6f13c7056a9df78656768a854c893d9e7c.tar.gz
fix SLAB_DESTROTY_BY_RCU
Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 5e6c5669473d..e90d259b3242 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2045,7 +2045,7 @@ static bool set_objfreelist_slab_cache(struct kmem_cache *cachep,
cachep->num = 0;
- if (cachep->ctor)
+ if (cachep->ctor || flags & SLAB_DESTROY_BY_RCU)
return false;
left = calculate_slab_order(cachep, size,