Moved around when the locking and unlocking of cuda_mem_map_mutex happens so it doesn't call a function that locks it while still holding the lock.
Fixes T85089
Differential D10219
Fix T85089: Cycles: Prevent cuda_mem_map_mutex from being locked multiple times Authored by James Horsley (mmdanggg2) on Jan 27 2021, 4:13 AM. Tags Subscribers None
Details
Moved around when the locking and unlocking of cuda_mem_map_mutex happens so it doesn't call a function that locks it while still holding the lock. Fixes T85089
Diff Detail
Event TimelineComment Actions Looks good to me. My main concern with locking directly inside generic_free would have been the double lock when called from tex_free, but you addressed by unlocking before, so everything looks functional. |