X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Fstackdepot.c;h=f229c65fd533b69c0f9e049bf3f32dd6072ee515;hb=2602cad6d649296b6819a7c13afd8cbce24d307d;hp=890dcc2e984e363268939d2b678a3d5f117b7e56;hpb=40f78232f97344afbbeb5b0008615f17c4b93466;p=mirror_ubuntu-hirsute-kernel.git diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 890dcc2e984e..f229c65fd533 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -70,7 +70,7 @@ static void *stack_slabs[STACK_ALLOC_MAX_SLABS]; static int depot_index; static int next_slab_inited; static size_t depot_offset; -static DEFINE_SPINLOCK(depot_lock); +static DEFINE_RAW_SPINLOCK(depot_lock); static bool init_stack_slab(void **prealloc) { @@ -280,7 +280,7 @@ depot_stack_handle_t stack_depot_save(unsigned long *entries, prealloc = page_address(page); } - spin_lock_irqsave(&depot_lock, flags); + raw_spin_lock_irqsave(&depot_lock, flags); found = find_stack(*bucket, entries, nr_entries, hash); if (!found) { @@ -304,7 +304,7 @@ depot_stack_handle_t stack_depot_save(unsigned long *entries, WARN_ON(!init_stack_slab(&prealloc)); } - spin_unlock_irqrestore(&depot_lock, flags); + raw_spin_unlock_irqrestore(&depot_lock, flags); exit: if (prealloc) { /* Nobody used this memory, ok to free it. */