From: Glauber Costa Date: Fri, 22 Feb 2013 16:20:00 +0000 (+0400) Subject: slub: correctly bootstrap boot caches X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~15^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d557b3cb69398d83ceabad9cf147c93a3aa97fd;p=pandora-kernel.git 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: Glauber Costa Reported-by: Steffen Michalke Tested-by: KAMEZAWA Hiroyuki Acked-by: Christoph Lameter Cc: Andrew Morton Cc: Tejun Heo Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed