Skip to content
Commit 1d07171c authored by Christoph Lameter's avatar Christoph Lameter Committed by Pekka Enberg
Browse files

slub: disable interrupts in cmpxchg_double_slab when falling back to pagelock



Split cmpxchg_double_slab into two functions. One for the case where we know that
interrupts are disabled (and therefore the fallback does not need to disable
interrupts) and one for the other cases where fallback will also disable interrupts.

This fixes the issue that __slab_free called cmpxchg_double_slab in some scenarios
without disabling interrupts.

Tested-by: default avatarHugh Dickins <hughd@google.com>
Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent 013e8963
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