OSDN Git Service

drm/scheduler: only kill entity if last user is killed v2
authorChristian König <christian.koenig@amd.com>
Thu, 26 Jul 2018 11:43:49 +0000 (13:43 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jul 2018 21:58:20 +0000 (16:58 -0500)
commit43bce41cf48eb51eab5ad9e0d40ed382a7bb61d7
tree2a394bbe837c5ff95ec29a4c483f179ccfcc56e4
parent4a102ad4ba0daf886dcf0927ce2a7f6c3b3a615c
drm/scheduler: only kill entity if last user is killed v2

Note which task is using the entity and only kill it if the last user of
the entity is killed. This should prevent problems when entities are leaked to
child processes.

v2: add missing kernel doc

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/gpu_scheduler.c
include/drm/gpu_scheduler.h