]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita86bb6eb09d401eb53703c31db7c2027d4f55dd7
tree2a394bbe837c5ff95ec29a4c483f179ccfcc56e4
parente07e006f9f5c380afecbfb4d92d8eb4aedf87677
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