On 10/3/25 17:54, Dmitry Osipenko wrote:
> 2. Use mutex instead of spinlock, we don't want problems with mem
> reclaim situations

On the other hand, the virtio_gpu_object_restore_all() shouldn't race
with any obj create/free, hence no need to protect it with a lock and
then spinlock can be used to only add/remove objs from the restore_list.

-- 
Best regards,
Dmitry

Reply via email to