diff options
author | Harshit Agarwal <harshit@nutanix.com> | 2024-11-15 00:08:11 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-12-02 14:01:30 +0300 |
commit | 59297e2093ceced86393a059a4bd36802311f7bb (patch) | |
tree | bd5704c304fadbadc358240810b7c8f4b8ea05ac /tools/perf/scripts/python/task-analyzer.py | |
parent | 108ad0999085df2366dd9ef437573955cb3f5586 (diff) | |
download | linux-59297e2093ceced86393a059a4bd36802311f7bb.tar.xz |
sched: add READ_ONCE to task_on_rq_queued
task_on_rq_queued read p->on_rq without READ_ONCE, though p->on_rq is
set with WRITE_ONCE in {activate|deactivate}_task and smp_store_release
in __block_task, and also read with READ_ONCE in task_on_rq_migrating.
Make all of these accesses pair together by adding READ_ONCE in the
task_on_rq_queued.
Signed-off-by: Harshit Agarwal <harshit@nutanix.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Phil Auld <pauld@redhat.com>
Link: https://lkml.kernel.org/r/20241114210812.1836587-1-jon@nutanix.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions