diff --git a/mm/memory.c b/mm/memory.c index 1fc1f14839916..15f058f5091b6 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -7014,7 +7014,7 @@ static struct kmem_cache *page_ptl_cachep; void __init ptlock_cache_init(void) { page_ptl_cachep = kmem_cache_create("page->ptl", - SLAB_PANIC, NULL); + SLAB_PANIC|SLAB_TYPESAFE_BY_RCU, NULL); }