diff options
| author | Breno Leitao <leitao@debian.org> | 2026-06-26 02:57:55 -0700 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-06-29 08:07:10 -1000 |
| commit | f504706a25eb3462cc00c76340feb6751f9e37f9 (patch) | |
| tree | 1dce255a947b21d8bceeb5b62d920a04f2350d88 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | d070f2916ae918c4dddadce6160576c070efcd3e (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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
