diff options
| author | Andrea Righi <arighi@nvidia.com> | 2026-09-22 18:51:40 +0200 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-09-28 08:44:38 +0200 |
| commit | 313b652837d0541684680a7d07a95c5560441d4f (patch) | |
| tree | 54688137944dbd86a1637426631b27de3fbcb870 /tools/lib/python | |
| parent | 627ea30aca3b309af40cdd07a35eb1027ba4a0bc (diff) | |
sched/core: Drop mutex locks before proxy rescheduling
find_proxy_task() can call proxy_resched_idle() from return
expressions inside mutex wait_lock and blocked task lock guard scopes.
Return expressions are evaluated before scoped guards are released, so
proxy_resched_idle() invokes scheduling-class callbacks while both raw
spinlocks are held.
Route these cases through a common label outside the guard scopes. The
common label is required because a direct return would evaluate
proxy_resched_idle() before guard cleanup and run the class callbacks
under the proxy-exec locks again.
This is a preparatory change to support proxy execution with sched_ext.
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://patch.msgid.link/20260922165445.943315-2-arighi@nvidia.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
