On 02/06/25 10:22, Maíra Canal wrote:
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")
Signed-off-by: Maíra Canal <[email protected]>
---

The patch was applied to misc/kernel.git (drm-misc-fixes) with Philipp's
suggestions.

Thanks for the review!

Best Regards,
- Maíra


Reply via email to