Skip to content
Snippets Groups Projects
Commit 09c2ee42 authored by Asahi Lina's avatar Asahi Lina :sparkles: Committed by Daniel Almeida
Browse files

rust: drm/gpuvm: Pass vm_bo explicitly to step_remap()


We cannot drop ARef<GpuVmBo<T>> references within the step_*() calls,
since the destructore takes the object lock but that is already locked
here. Instead of providing a method that the callback can use to obtain
a reference (which, when dropped, would deadlock), grab a reference
ourselves and pass it explicitly into the callback as a &ref. Thus, we
can drop it without locking again.

Signed-off-by: default avatarAsahi Lina <lina@asahilina.net>
parent 13dbb7fa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment