diff options
author | Rik van Riel <[email protected]> | 2024-11-08 19:27:50 -0500 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2024-11-13 03:42:41 +0100 |
commit | 7e33001b8b9a78062679e0fdf5b0842a49063135 (patch) | |
tree | a4d43a057f795ab7c76358c7a80ff5a57b1526c2 /fs/btrfs/dev-replace.c | |
parent | abe949ce0f9be943d8762f91e04b8588255f2f70 (diff) |
x86/mm/tlb: Put cpumask_test_cpu() check in switch_mm_irqs_off() under CONFIG_DEBUG_VM
On a web server workload, the cpumask_test_cpu() inside the
WARN_ON_ONCE() in the 'prev == next branch' takes about 17% of
all the CPU time of switch_mm_irqs_off().
On a large fleet, this WARN_ON_ONCE() has not fired in at least
a month, possibly never.
Move this test under CONFIG_DEBUG_VM so it does not get compiled
in production kernels.
Signed-off-by: Rik van Riel <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions