提交 f64ae042 编写于 作者: S Shaohua Li 提交者: Pekka Enberg

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: NShaohua Li <shaohua.li@intel.com>
Acked-by: NChristoph Lameter <cl@linux.com>
Acked-by: NDavid Rientjes <rientjes@google.com>
Signed-off-by: NPekka Enberg <penberg@kernel.org>
上级 1ea6b8f4
...@@ -1904,7 +1904,8 @@ static void unfreeze_partials(struct kmem_cache *s) ...@@ -1904,7 +1904,8 @@ static void unfreeze_partials(struct kmem_cache *s)
if (l == M_PARTIAL) if (l == M_PARTIAL)
remove_partial(n, page); remove_partial(n, page);
else else
add_partial(n, page, 1); add_partial(n, page,
DEACTIVATE_TO_TAIL);
l = m; l = m;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册