drm/scheduler: Add stopped flag to drm_sched_entity
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 17 Aug 2018 14:32:50 +0000 (10:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:10 +0000 (11:11 -0500)
commit62347a33001c27b22465361aa4adcaa432497bdf
tree29ec0030e6b7cb636eb76b116b20f3afad1425eb
parent9c70d10ae72a188adb9da83ec760e1d5779bc2ed
drm/scheduler: Add stopped flag to drm_sched_entity

The flag will prevent another thread from same process to
reinsert the entity queue into scheduler's rq after it was already
removewd from there by another thread during drm_sched_entity_flush.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/sched_entity.c
include/drm/gpu_scheduler.h