summaryrefslogtreecommitdiffstats
path: root/block/keyslot-manager.c
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2021-06-08 01:19:03 +0200
committerVlastimil Babka <vbabka@suse.cz>2021-09-03 23:56:49 +0200
commit976b805c782a57256e08aeaab45a64536b8887cf (patch)
tree2ade9eace717c8c2dbe45e88b8d0c985e3efc9d5 /block/keyslot-manager.c
parentmm, slub: don't disable irq for debug_check_no_locks_freed() (diff)
downloadlinux-976b805c782a57256e08aeaab45a64536b8887cf.tar.xz
linux-976b805c782a57256e08aeaab45a64536b8887cf.zip
mm, slub: remove redundant unfreeze_partials() from put_cpu_partial()
Commit d6e0b7fa1186 ("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 by c9fc586403e7 ("slab: introduce __kmemcg_cache_deactivate()") and ultimately removed by 9855609bde03 ("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 that d6e0b7fa1186 also 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>
Diffstat (limited to 'block/keyslot-manager.c')
0 files changed, 0 insertions, 0 deletions