commit | e1b4ce25dbc93ab0cb8ed0f236a3b9ff7b03802c | [log] [tgz] |
---|---|---|
author | Christian König <christian.koenig@amd.com> | Fri Aug 09 17:27:21 2019 +0200 |
committer | Alex Deucher <alexander.deucher@amd.com> | Wed Aug 14 15:45:53 2019 -0500 |
tree | 2d6fed0206a76b9cfa53001ce820922bcc803253 | |
parent | 31ec0dd38085aaeb75ab04211bf3b51ad917c9b4 [diff] |
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>