diff options
| author | Maíra Canal <[email protected]> | 2025-06-02 13:22:16 +0000 |
|---|---|---|
| committer | Maíra Canal <[email protected]> | 2025-06-16 23:18:13 +0000 |
| commit | 61ee19dedb8d753249e20308782bf4e9e2fb7344 (patch) | |
| tree | d0d62290c0990365c5c7ba57652eeb6555a2642c /tools/perf/scripts/python/check-perf-trace.py | |
| parent | drm/v3d: Avoid NULL pointer dereference in `v3d_job_update_stats()` (diff) | |
| download | kernel-61ee19dedb8d753249e20308782bf4e9e2fb7344.tar.gz kernel-61ee19dedb8d753249e20308782bf4e9e2fb7344.zip | |
drm/etnaviv: Protect the scheduler's pending list with its lock
Commit 704d3d60fec4 ("drm/etnaviv: don't block scheduler when GPU is still
active") ensured that active jobs are returned to the pending list when
extending the timeout. However, it didn't use the pending list's lock to
manipulate the list, which causes a race condition as the scheduler's
workqueues are running.
Hold the lock while manipulating the scheduler's pending list to prevent
a race.
Cc: [email protected]
Fixes: 704d3d60fec4 ("drm/etnaviv: don't block scheduler when GPU is still active")
Reported-by: Philipp Stanner <[email protected]>
Closes: https://lore.kernel.org/dri-devel/[email protected]/
Reviewed-by: Lucas Stach <[email protected]>
Reviewed-by: Philipp Stanner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Maíra Canal <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
