percpu-add-__this_cpu_try_cmpxchg.patch removed from -mm tree
The quilt patch titled
Subject: percpu: add __this_cpu_try_cmpxchg()
has been removed from the -mm tree. Its filename was
percpu-add-__this_cpu_try_cmpxchg.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Uros Bizjak <[email protected]>
Subject: percpu: add __this_cpu_try_cmpxchg()
Date: Tue, 28 May 2024 16:43:13 +0200
Add __this_cpu_try_cmpxchg() version of the percpu op.
Signed-off-by Uros Bizjak <[email protected]>
Reviewed-by Uladzislau Rezki (Sony) <[email protected]>
Acked-by Dennis Zhou <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Tejun Heo <[email protected]>
Cc Christoph Lameter <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/percpu-defs.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/linux/percpu-defs.h renamed from include/linux/percpu-defs.h~percpu-add-__this_cpu_try_cmpxchg +6 -0
@@ -475,6 +475,12 @@ do { \raw_cpu_cmpxchg (pcp, oval, nval); \ }) +#define __this_cpu_try_cmpxchg (pcp, ovalp, nval) \ +({ \ + __this_cpu_preempt_check("try_cmpxchg"); \ + raw_cpu_try_cmpxchg(pcp, ovalp, nval); \ +}) +#define __this_cpu_sub (pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))#define __this_cpu_inc (pcp) __this_cpu_add(pcp, 1)#define __this_cpu_dec (pcp) __this_cpu_sub(pcp, 1)
_
Patches currently in -mm which might be from [email protected] are
fork-use-this_cpu_try_cmpxchg-in-try_release_thread_stack_to_cache.patch fork-use-this_cpu_try_cmpxchg-in-try_release_thread_stack_to_cache-fix.patch