]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc81143690193b92ac384fd006aa73fe2931a723
treea922251df2e25ab013a3c15501da6322cf800341
parent1e6865946150956172916dbe64b2c1926f705282
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