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 /include | |
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 'include')
-rw-r--r-- | include/asm-generic/barrier.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/barrier.h b/include/asm-generic/barrier.h index 0c0695763bea..d4f581c1e21d 100644 --- a/include/asm-generic/barrier.h +++ b/include/asm-generic/barrier.h @@ -294,5 +294,13 @@ do { \ #define io_stop_wc() do { } while (0) #endif +/* + * Architectures that guarantee an implicit smp_mb() in switch_mm() + * can override smp_mb__after_switch_mm. + */ +#ifndef smp_mb__after_switch_mm +# define smp_mb__after_switch_mm() smp_mb() +#endif + #endif /* !__ASSEMBLY__ */ #endif /* __ASM_GENERIC_BARRIER_H */ |