diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-04-21 09:39:36 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-04-21 09:39:36 -0700 |
commit | 3b68086599f86f4be244ec7d1928c8a74cb9538d (patch) | |
tree | dab297b1b107a6690ef5306320c8aaeeec0b4ec3 /arch | |
parent | d07a0b861dfd8a525ffb015b05648fb4065c5bd2 (diff) | |
parent | fe90f3967bdb3e13f133e5f44025e15f943a99c5 (diff) |
Merge tag 'sched_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Borislav Petkov:
- Add a missing memory barrier in the concurrency ID mm switching
* tag 'sched_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched: Add missing memory barrier in switch_mm_cid
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/barrier.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/barrier.h b/arch/x86/include/asm/barrier.h index fe1e7e3cc844..63bdc6b85219 100644 --- a/arch/x86/include/asm/barrier.h +++ b/arch/x86/include/asm/barrier.h @@ -79,6 +79,9 @@ do { \ #define __smp_mb__before_atomic() do { } while (0) #define __smp_mb__after_atomic() do { } while (0) +/* Writing to CR3 provides a full memory barrier in switch_mm(). */ +#define smp_mb__after_switch_mm() do { } while (0) + #include <asm-generic/barrier.h> #endif /* _ASM_X86_BARRIER_H */ |