Skip to content
Commit 7d557b3c authored by Glauber Costa's avatar Glauber Costa Committed by Pekka Enberg
Browse files

slub: correctly bootstrap boot caches



After we create a boot cache, we may allocate from it until it is bootstraped.
This will move the page from the partial list to the cpu slab list. If this
happens, the loop:

	list_for_each_entry(p, &n->partial, lru)

that we use to scan for all partial pages will yield nothing, and the pages
will keep pointing to the boot cpu cache, which is of course, invalid. To do
that, we should flush the cache to make sure that the cpu slab is back to the
partial list.

Signed-off-by: default avatarGlauber Costa <glommer@parallels.com>
Reported-by: default avatarSteffen Michalke <StMichalke@web.de>
Tested-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent b1e05416
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment