diff --git a/mm/memory.c b/mm/memory.c index 83fd35c034d7a..28526a4205d1b 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -7023,7 +7023,7 @@ static struct kmem_cache *page_ptl_cachep; void __init ptlock_cache_init(void) { page_ptl_cachep = kmem_cache_create("page->ptl", sizeof(spinlock_t), 0, - SLAB_PANIC, NULL); + SLAB_PANIC|SLAB_TYPESAFE_BY_RCU, NULL); } bool ptlock_alloc(struct ptdesc *ptdesc)