From: Joonsoo Kim Date: Fri, 22 Jun 2012 18:22:38 +0000 (+0900) Subject: slub: reduce failure of this_cpu_cmpxchg in put_cpu_partial() after unfreezing X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~8^2~2^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e24fc410f58cc7851188a6e996dc6ce5c4259eb4;p=pandora-kernel.git slub: reduce failure of this_cpu_cmpxchg in put_cpu_partial() after unfreezing In current implementation, after unfreezing, we doesn't touch oldpage, so it remain 'NOT NULL'. When we call this_cpu_cmpxchg() with this old oldpage, this_cpu_cmpxchg() is mostly be failed. We can change value of oldpage to NULL after unfreezing, because unfreeze_partial() ensure that all the cpu partial slabs is removed from cpu partial list. In this time, we could expect that this_cpu_cmpxchg is mostly succeed. Acked-by: Christoph Lameter Signed-off-by: Joonsoo Kim Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed