diff options
| author | David Carlier <devnexen@gmail.com> | 2026-02-18 19:22:23 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-02-20 17:17:31 -1000 |
| commit | f892f9f99464bead942a75d2b00dda6be07de97f (patch) | |
| tree | 421ad80d41357a0fb00addd07ea1452cf43476cb /include/linux | |
| parent | 625be3456b3ced6e2dca6166962c0cf6cc2e546d (diff) | |
tools/sched_ext: scx_userland: fix data races on shared counters
The stats thread reads nr_vruntime_enqueues, nr_vruntime_dispatches,
nr_vruntime_failed, and nr_curr_enqueued concurrently with the main
thread writing them, with no synchronization.
Use __atomic builtins with relaxed ordering for all accesses to these
counters to eliminate the data races.
Only display accuracy is affected, not scheduling correctness.
Signed-off-by: David Carlier <devnexen@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
