commit | df9bcb0652bbfde1b37bda98f0ad1fa7fda46d67 | [log] [tgz] |
---|---|---|
author | Christian König <christian.koenig@amd.com> | Thu Aug 17 12:23:51 2017 +0200 |
committer | Alex Deucher <alexander.deucher@amd.com> | Fri Aug 18 12:02:58 2017 -0400 |
tree | 5a6d38c2f959042a97db1ecf2ba9cb4719b14522 | |
parent | d5de797ff1c91157ddefd7102aaf5f87ff222746 [diff] |
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>