mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-03-07 14:19:50 +00:00
550.135
This commit is contained in:
@@ -1281,9 +1281,9 @@ NV_STATUS uvm_va_range_block_create(uvm_va_range_t *va_range, size_t index, uvm_
|
||||
return status;
|
||||
|
||||
// Try to insert it
|
||||
old = (uvm_va_block_t *)nv_atomic_long_cmpxchg(&va_range->blocks[index],
|
||||
(long)NULL,
|
||||
(long)block);
|
||||
old = (uvm_va_block_t *)atomic_long_cmpxchg(&va_range->blocks[index],
|
||||
(long)NULL,
|
||||
(long)block);
|
||||
if (old) {
|
||||
// Someone else beat us on the insert
|
||||
uvm_va_block_release(block);
|
||||
|
||||
Reference in New Issue
Block a user