artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
444fe0f
)
Pass `uobj' to uvmfault_unlockall() at the end of the fault handler.
author
mpi
<mpi@openbsd.org>
Sun, 5 Sep 2021 07:59:47 +0000
(07:59 +0000)
committer
mpi
<mpi@openbsd.org>
Sun, 5 Sep 2021 07:59:47 +0000
(07:59 +0000)
This is currently a NOOP but will become necessary to unlock the UVM
object with the upcoing "vmobjlock" diff.
Tested by patrick@ and robert@
ok jsg@
sys/dev/pci/drm/ttm/ttm_bo_vm.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/ttm/ttm_bo_vm.c
b/sys/dev/pci/drm/ttm/ttm_bo_vm.c
index
cd70004
..
a2d27de
100644
(file)
--- a/
sys/dev/pci/drm/ttm/ttm_bo_vm.c
+++ b/
sys/dev/pci/drm/ttm/ttm_bo_vm.c
@@
-711,7
+711,7
@@
ttm_bo_vm_fault(struct uvm_faultinfo *ufi, vaddr_t vaddr, vm_page_t *pps,
break;
}
- uvmfault_unlockall(ufi, NULL,
NULL
);
+ uvmfault_unlockall(ufi, NULL,
uobj
);
return ret;
}
@@
-730,7
+730,7
@@
ttm_bo_vm_fault(struct uvm_faultinfo *ufi, vaddr_t vaddr, vm_page_t *pps,
dma_resv_unlock(bo->base.resv);
- uvmfault_unlockall(ufi, NULL,
NULL
);
+ uvmfault_unlockall(ufi, NULL,
uobj
);
return ret;
}
EXPORT_SYMBOL(ttm_bo_vm_fault);