mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
mm, slub: remove redundant unfreeze_partials() from put_cpu_partial()
Commitd6e0b7fa11("slub: make dead caches discard free slabs immediately") introduced cpu partial flushing for kmemcg caches, based on setting the target cpu_partial to 0 and adding a flushing check in put_cpu_partial(). This code that sets cpu_partial to 0 was later moved byc9fc586403("slab: introduce __kmemcg_cache_deactivate()") and ultimately removed by9855609bde("mm: memcg/slab: use a single set of kmem_caches for all accounted allocations"). However the check and flush in put_cpu_partial() was never removed, although it's effectively a dead code. So this patch removes it. Note thatd6e0b7fa11also added preempt_disable()/enable() to unfreeze_partials() which could be thus also considered unnecessary. But further patches will rely on it, so keep it. Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
parent
84048039d7
commit
976b805c78
1 changed files with 0 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue