drm/amdgpu: make the CTX ioctl thread-safe
authorMarek Olšák <marek.olsak@amd.com>
Tue, 5 May 2015 18:52:00 +0000 (20:52 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:27 +0000 (21:03 -0400)
commit0147ee0f5921af606ac0f822107b69b53dd29358
treea922251df2e25ab013a3c15501da6322cf800341
parentf11358daa93a8ae9fdee5cfe6ef7a0ed0027edee
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c