[GIT PULL] locking/urgent for v5.18-rc2

From: Borislav Petkov
Date: Sun Apr 10 2022 - 06:50:16 EST


Hi Linus,

please pull a bunch of urgent locking fixes for 5.18-rc2.

Thx.

---

The following changes since commit 3123109284176b1532874591f7c81f3837bbdc17:

Linux 5.18-rc1 (2022-04-03 14:08:21 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/locking_urgent_for_v5.18_rc2

for you to fetch changes up to 273ba85b5e8b971ed28eb5c17e1638543be9237d:

Revert "mm/page_alloc: mark pagesets as __maybe_unused" (2022-04-05 09:59:39 +0200)

----------------------------------------------------------------
- Allow the compiler to optimize away unused percpu accesses and change
the local_lock_* macros back to inline functions

- A couple of fixes to static call insn patching

----------------------------------------------------------------
Christophe Leroy (3):
static_call: Don't make __static_call_return0 static
static_call: Properly initialise DEFINE_STATIC_CALL_RET0()
static_call: Remove __DEFINE_STATIC_CALL macro

Peter Zijlstra (1):
x86,static_call: Fix __static_call_return0 for i386

Sebastian Andrzej Siewior (3):
x86/percpu: Remove volatile from arch_raw_cpu_ptr().
Revert "locking/local_lock: Make the empty local_lock_*() function a macro."
Revert "mm/page_alloc: mark pagesets as __maybe_unused"

arch/powerpc/include/asm/static_call.h | 1 +
arch/x86/include/asm/percpu.h | 6 +-
arch/x86/include/asm/static_call.h | 2 +
arch/x86/kernel/static_call.c | 5 +-
include/linux/local_lock_internal.h | 6 +-
include/linux/static_call.h | 48 +--
kernel/Makefile | 3 +-
kernel/static_call.c | 541 --------------------------------
kernel/static_call_inline.c | 543 +++++++++++++++++++++++++++++++++
mm/page_alloc.c | 2 +-
10 files changed, 585 insertions(+), 572 deletions(-)
create mode 100644 kernel/static_call_inline.c

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg