summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-05 20:52:00 +0200
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 {
struct amdgpu_device *adev;
struct idr ctx_handles;
/* lock for IDR system */
- struct mutex hlock;
+ struct mutex lock;
};
/*