Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f64ae042 authored by Shaohua Li's avatar Shaohua Li Committed by Pekka Enberg
Browse files

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: default avatarShaohua Li <shaohua.li@intel.com>
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 1ea6b8f4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1904,7 +1904,8 @@ static void unfreeze_partials(struct kmem_cache *s)
				if (l == M_PARTIAL)
					remove_partial(n, page);
				else
					add_partial(n, page, 1);
					add_partial(n, page,
						DEACTIVATE_TO_TAIL);

				l = m;
			}