]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: use reservation_object_trylock in ttm_bo_individualize_resv v2
authorChristian König <christian.koenig@amd.com>
Thu, 17 Aug 2017 10:23:51 +0000 (12:23 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Aug 2017 16:02:58 +0000 (12:02 -0400)
commit10aced8cfc94614d4233cac28ddf2b17bf5ce318
tree5a6d38c2f959042a97db1ecf2ba9cb4719b14522
parent5a5316deab859ddb435287bcafc1af2e8d4acd21
drm/ttm: use reservation_object_trylock in ttm_bo_individualize_resv v2

Fixes a false positive from might_sleep(). The reservation object is freshly
initialized, so nobody else can hold the mutex but the function is
called from atomic context.

v2: Correctly invert the check as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c