linux_dsm_epyc7002/drivers/gpu/drm/scheduler
Christian König 85cb9d5067 drm/scheduler: use job count instead of peek
The spsc_queue_peek function is accessing queue->head which belongs to
the consumer thread and shouldn't be accessed by the producer

This is fixing a rare race condition when destroying entities.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Monk.liu@amd.com
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-15 10:52:10 -05:00
..
gpu_scheduler_trace.h drm/scheduler: drop use of drmP.h 2019-07-15 18:11:31 +02:00
Makefile drm/scheduler: rename gpu_scheduler.c to sched_main.c 2018-08-27 11:10:44 -05:00
sched_entity.c drm/scheduler: use job count instead of peek 2019-08-15 10:52:10 -05:00
sched_fence.c drm/scheduler: drop use of drmP.h 2019-07-15 18:11:31 +02:00
sched_main.c drm/scheduler: drop use of drmP.h 2019-07-15 18:11:31 +02:00