aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorAndrey Grodzovsky <[email protected]>2019-11-25 15:51:29 -0500
committerChristian König <[email protected]>2019-11-27 16:05:49 +0100
commit135517d3565b48f4def3b1b82008bc17eb5d1c90 (patch)
treee10a1fff61256e4d62bfa192f659e0b8f300b251 /tools/perf/scripts/python/bin/stackcollapse-record
parent8082731830a0b95f7f7a63b78de67de446013c80 (diff)
drm/scheduler: Avoid accessing freed bad job.
Problem: Due to a race between drm_sched_cleanup_jobs in sched thread and drm_sched_job_timedout in timeout work there is a possiblity that bad job was already freed while still being accessed from the timeout thread. Fix: Instead of just peeking at the bad job in the mirror list remove it from the list under lock and then put it back later when we are garanteed no race with main sched thread is possible which is after the thread is parked. v2: Lock around processing ring_mirror_list in drm_sched_cleanup_jobs. v3: Rebase on top of drm-misc-next. v2 is not needed anymore as drm_sched_get_cleanup_job already has a lock there. v4: Fix comments to relfect latest code in drm-misc. Signed-off-by: Andrey Grodzovsky <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Emily Deng <[email protected]> Tested-by: Emily Deng <[email protected]> Signed-off-by: Christian König <[email protected]> Link: https://patchwork.freedesktop.org/patch/342356
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions