]> git.baikalelectronics.ru Git - kernel.git/commit
slub: use correct parameter to add a page to partial list tail
authorShaohua Li <shaohua.li@intel.com>
Fri, 11 Nov 2011 00:33:48 +0000 (08:33 +0800)
committerPekka Enberg <penberg@kernel.org>
Tue, 15 Nov 2011 18:37:15 +0000 (20:37 +0200)
commit7cb83f5f5b94091f6a1cf82d00fd4529dc47adf2
treeda4a9c1b06e5e1234cad1f2b7ae6dc3c372b26cc
parentee62ff854712868eaa83b506713bfd0a11c5dead
slub: use correct parameter to add a page to partial list tail

unfreeze_partials() needs add the page to partial list tail, since such page
hasn't too many free objects. We now explictly use DEACTIVATE_TO_TAIL for this,
while DEACTIVATE_TO_TAIL != 1. This will cause performance regression (eg, more
lock contention in node->list_lock) without below fix.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c