aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-05 14:52:00 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-06-03 21:03:27 -0400
commit0147ee0f5921af606ac0f822107b69b53dd29358 (patch)
treea922251df2e25ab013a3c15501da6322cf800341 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentf11358daa93a8ae9fdee5cfe6ef7a0ed0027edee (diff)
drm/amdgpu: make the CTX ioctl thread-safe
The existing locks were protecting the list, but not the elements. v2: rename hlock to lock Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 65246abcee27..cef3a43ab0aa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1056,7 +1056,7 @@ struct amdgpu_ctx_mgr {
1056 struct amdgpu_device *adev; 1056 struct amdgpu_device *adev;
1057 struct idr ctx_handles; 1057 struct idr ctx_handles;
1058 /* lock for IDR system */ 1058 /* lock for IDR system */
1059 struct mutex hlock; 1059 struct mutex lock;
1060}; 1060};
1061 1061
1062/* 1062/*