]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/amd: fix deadlock of job_list_lock V2
authorChunming Zhou <David1.Zhou@amd.com>
Mon, 25 Jul 2016 05:55:35 +0000 (13:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:37:06 +0000 (14:37 -0400)
commit1c62cf91e6ac32346b2dd3bb9d739219a9cc39d0
treea12aea43826052b3560aad21c2fa73e17e0a3e2d
parentbdc2eea4722b96f54edb7588078540505b5ac096
drm/amd: fix deadlock of job_list_lock V2

run_job involves mutex, which could sleep.

V2: use list_for_each_entry_safe, since the job might complete
while we dropped the lock.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c