RE: [PATCH] drm/scheduler: use job count instead of peek

2019-08-13 Thread Liu, Monk
] 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 --- drivers/gpu/

Re: [PATCH] drm/scheduler: use job count instead of peek

2019-08-12 Thread Grodzovsky, Andrey
Acked-by: Andrey Grodzovsky Andrey On 8/9/19 11:31 AM, Christian König wrote: > 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. > >

[PATCH] drm/scheduler: use job count instead of peek

2019-08-09 Thread Christian König
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 --- drivers/gpu/drm/scheduler/sched_entity.c | 4 ++-- 1 file