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

2019-08-13 Thread Liu, Monk
Reviewed-by: monk@amd.com _ Monk Liu|GPU Virtualization Team |AMD -Original Message- From: Christian König Sent: Friday, August 9, 2019 11:31 PM To: Grodzovsky, Andrey ; dri-devel@lists.freedesktop.org; Liu, Monk ; Deng, Emily Subject: [PATCH]

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. > > Signed-off