Commit 0d2d5d40 authored by Miles Chen's avatar Miles Chen Committed by Linus Torvalds
Browse files

slub: remove obsolete comments of put_cpu_partial()

Commit d6e0b7fa ("slub: make dead caches discard free slabs
immediately") makes put_cpu_partial() run with preemption disabled and
interrupts disabled when calling unfreeze_partials().

The comment: "put_cpu_partial() is done without interrupts disabled and
without preemption disabled" looks obsolete, so remove it.


Signed-off-by: default avatarMiles Chen <>
Reviewed-by: default avatarAndrew Morton <>
Cc: Christoph Lameter <>
Cc: Pekka Enberg <>
Cc: David Rientjes <>
Cc: Joonsoo Kim <>
Cc: Vladimir Davydov <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 5d682681
......@@ -2222,9 +2222,7 @@ static void unfreeze_partials(struct kmem_cache *s,
* Put a page that was just frozen (in __slab_free) into a partial page
* slot if available. This is done without interrupts disabled and without
* preemption disabled. The cmpxchg is racy and may put the partial page
* onto a random cpus partial slot.
* slot if available.
* If we did not find a slot then simply move all the partials to the
* per node partial list.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment