diff options
author | 2025-07-17 16:44:53 +0800 | |
---|---|---|
committer | 2025-07-17 12:06:07 +0200 | |
commit | 15f77764e90a713ee3916ca424757688e4f565b9 (patch) | |
tree | d03466b202b2b4871a17b611cb9aa8c73d8abdf0 /rust/pin-init/internal/src | |
parent | drm/amdgpu: Reset the clear flag in buddy during resume (diff) | |
download | wireguard-linux-15f77764e90a713ee3916ca424757688e4f565b9.tar.xz wireguard-linux-15f77764e90a713ee3916ca424757688e4f565b9.zip |
drm/sched: Remove optimization that causes hang when killing dependent jobs
When application A submits jobs and application B submits a job with a
dependency on A's fence, the normal flow wakes up the scheduler after
processing each job. However, the optimization in
drm_sched_entity_add_dependency_cb() uses a callback that only clears
dependencies without waking up the scheduler.
When application A is killed before its jobs can run, the callback gets
triggered but only clears the dependency without waking up the scheduler,
causing the scheduler to enter sleep state and application B to hang.
Remove the optimization by deleting drm_sched_entity_clear_dep() and its
usage, ensuring the scheduler is always woken up when dependencies are
cleared.
Fixes: 777dbd458c89 ("drm/amdgpu: drop a dummy wakeup scheduler")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Lin.Cao <lincao12@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://lore.kernel.org/r/20250717084453.921097-1-lincao12@amd.com
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions