mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

- make createGraphicsAllocationFromSharedHandle and freeGraphicsMemory more threadsafe - there was race condition where one thread called PRIME_FD_TO_HANDLE ioctl when the other just closed the last handle with GEM_CLOSE ioctl. This led to situation where newly acquired handle from PRIME_FD_TO_HANDLE was already invalid and used in exec. - adding mutex for the time of accessing shared handles container and ioctls (GEM_CLOSE and PRIME_FD_TO_HANDLE) resolves racing problem Change-Id: I8417a036a1429be8f1ba97e63ebdda2707960564