]> git.baikalelectronics.ru Git - kernel.git/commit
mm, slub: validate slab from partial list or page allocator before making it cpu...
authorVlastimil Babka <vbabka@suse.cz>
Tue, 11 May 2021 14:37:51 +0000 (16:37 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 3 Sep 2021 23:12:21 +0000 (01:12 +0200)
commitda4343412c3b935a633a392ad61b14d1d58fb583
tree2bdf0cd31e03808ce4b73f9eb251c9286ca061bf
parent675962e9fb5913ab8c31a3c8eb6afafc1d6daa03
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: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c