Skip to content
Commit 3f2b77e3 authored by Vlastimil Babka's avatar Vlastimil Babka
Browse files

mm, slub: validate slab from partial list or page allocator before making it cpu slab



When we obtain a new slab page from node partial list or page allocator, we
assign it to kmem_cache_cpu, perform some checks, and if they fail, we undo
the assignment.

In order to allow doing the checks without irq disabled, restructure the code
so that the checks are done first, and kmem_cache_cpu.page assignment only
after they pass.

Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent 6c1dbb67
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment