]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu/userq: cleanup amdgpu_userq_get/put where not needed
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 20 Mar 2026 11:59:01 +0000 (17:29 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:17:31 +0000 (14:17 -0400)
commit8f402ddd4f2321485fff7384c003124681a08146
tree9335ee20c4ac93f6acc4685342a75a6decc24be1
parent5da89a8afca14a266e82d2c99e0bd5ae6db23611
drm/amdgpu/userq: cleanup amdgpu_userq_get/put where not needed

amdgpu_userq_put/get are not needed in case we already holding
the userq_mutex and reference is valid already from queue create
time or from signal ioctl. These additional get/put could be a
potential reason for deadlock in case the ref count reaches zero
and destroy is called which again try to take the userq_mutex.

Due to the above change we avoid deadlock between suspend/restore
calling destroy queues trying to take userq_mutex again.

Cc: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c