summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2026-08-12 09:03:18 -0700
committerTejun Heo <tj@kernel.org>2026-08-12 07:06:02 -1000
commit7aef540078adc7cdfa5ee2c9784269b49f51b539 (patch)
tree83f7c81f3d8255fa14e2ba6a8b27f951fe53f2d0 /tools/perf/scripts/python/stackcollapse.py
parenta5bde5d8fde8a8cb28e59a672d5ddc5b9c1e7656 (diff)
workqueue: use rcu_dereference_sched() in workqueue_congested()
workqueue_congested() fetches the pwq out of wq->cpu_pwq with a plain load, so sparse complains about the dropped __rcu: kernel/workqueue.c:6304:13: sparse: incorrect type in assignment (different address spaces) @@ expected struct pool_workqueue *pwq @@ got struct pool_workqueue [noderef] __rcu * @@ A pwq is released with kfree_rcu() and the read is protected by the surrounding preempt_disable(), which is what commit fd5081f4ef33 ("workqueue: Remove redundant rcu_read_lock/unlock() in workqueue_congested()") relied on when it dropped the rcu_read_lock() here. Use the rcu_dereference_sched() helper to make that explicit. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202608120931.tvTzq1gD-lkp@intel.com/ Signed-off-by: Breno Leitao <leitao@debian.org> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions