amdgpu: Take a lock before removing devices from fd_tab hash table.
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 10 May 2018 23:22:17 +0000 (19:22 -0400)
committerJan Vesely <jan.vesely@rutgers.edu>
Fri, 25 May 2018 16:12:00 +0000 (12:12 -0400)
commit712fa0f3f420a7b9b42ae6d6fcb513aca97d541d
tree88dd0f96f7610f09c450fd042ba3a911ae5e4585
parent35615697f787f0ac46a2c00e61651cba668e6ef7
amdgpu: Take a lock before removing devices from fd_tab hash table.

Close the file descriptors under lock as well.
v2: close fds after removing from hash table

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
amdgpu/amdgpu_device.c