diff options
author | Lukas Wunner <[email protected]> | 2018-02-11 10:38:28 +0100 |
---|---|---|
committer | Lukas Wunner <[email protected]> | 2018-02-16 22:24:25 +0100 |
commit | 27d4ee03078aba88c5e07dcc4917e8d01d046f38 (patch) | |
tree | 31843f798ac72fce35096eff622e4e534623a477 /tools/perf/scripts/python | |
parent | 54f809cfbd6b4a43959039f5d33596ed3297ce16 (diff) |
workqueue: Allow retrieval of current task's work struct
Introduce a helper to retrieve the current task's work struct if it is
a workqueue worker.
This allows us to fix a long-standing deadlock in several DRM drivers
wherein the ->runtime_suspend callback waits for a specific worker to
finish and that worker in turn calls a function which waits for runtime
suspend to finish. That function is invoked from multiple call sites
and waiting for runtime suspend to finish is the correct thing to do
except if it's executing in the context of the worker.
Cc: Lai Jiangshan <[email protected]>
Cc: Dave Airlie <[email protected]>
Cc: Ben Skeggs <[email protected]>
Cc: Alex Deucher <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Reviewed-by: Lyude Paul <[email protected]>
Signed-off-by: Lukas Wunner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/2d8f603074131eb87e588d2b803a71765bd3a2fd.1518338788.git.lukas@wunner.de
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions