Commit b168098
Peter Zijlstra
perf: Optimize perf_pmu_migrate_context()
Thomas reported that offlining CPUs spends a lot of time in
synchronize_rcu() as called from perf_pmu_migrate_context() even though
he's not actually using uncore events.
Turns out, the thing is unconditionally waiting for RCU, even if there's
no actual events to migrate.
Fixes: 0cda4c0 ("perf: Introduce perf_pmu_migrate_context()")
Reported-by: Thomas Gleixner <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Thomas Gleixner <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Reviewed-by: Paul E. McKenney <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]1 parent 197b6b6 commit b168098
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12893 | 12893 | | |
12894 | 12894 | | |
12895 | 12895 | | |
12896 | | - | |
12897 | | - | |
12898 | | - | |
12899 | | - | |
| 12896 | + | |
| 12897 | + | |
| 12898 | + | |
| 12899 | + | |
| 12900 | + | |
12900 | 12901 | | |
12901 | | - | |
| 12902 | + | |
| 12903 | + | |
12902 | 12904 | | |
12903 | 12905 | | |
12904 | 12906 | | |
| |||
0 commit comments