summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2026-06-26 02:57:55 -0700
committerTejun Heo <tj@kernel.org>2026-06-29 08:07:10 -1000
commitf504706a25eb3462cc00c76340feb6751f9e37f9 (patch)
tree1dce255a947b21d8bceeb5b62d920a04f2350d88 /tools/perf/scripts/python/libxed.py
parentd070f2916ae918c4dddadce6160576c070efcd3e (diff)
workqueue: defer the worker wakeup outside pool->lock in process_one_work()
Use kick_pool_pick() to select and claim the worker under pool->lock and issue the wakeup with wake_up_process() after the lock is dropped. Unlike __queue_work(), this path has no surrounding RCU section, so take rcu_read_lock() before dropping pool->lock to keep the picked worker's task_struct valid across the wakeup. Signed-off-by: Breno Leitao <leitao@debian.org> Tested-by: Krishna Magar <kmagar@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions