Skip to content
Commit 3406e91b authored by Vlastimil Babka's avatar Vlastimil Babka
Browse files

mm, slub: make locking in deactivate_slab() irq-safe



dectivate_slab() now no longer touches the kmem_cache_cpu structure, so it will
be possible to call it with irqs enabled. Just convert the spin_lock calls to
their irq saving/restoring variants to make it irq-safe.

Note we now have to use cmpxchg_double_slab() for irq-safe slab_lock(), because
in some situations we don't take the list_lock, which would disable irqs.

Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent a019d201
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment