Skip to content

virgl: Don't destroy resource while it's in use.

Lepton Wu requested to merge lepton/mesa:ref1 into master

This is the race condition: thread 1 check reference count of resource and then find out out it's zero and then it begin to destroy it. Around the same time, thread 2 gets the lock and get the resource from the hash table and plan to use it. Then this resource gets destroyed while it's still in use.

Merge request reports