mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 23:32:52 -04:00
vm_kern: in unback, init cursor while unlocked
In kmem_unback(), take one small bit of code out of the region where the write lock is held. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D49834
This commit is contained in:
parent
0fc3c29fb3
commit
adc33d3288
1 changed files with 1 additions and 1 deletions
|
|
@ -650,8 +650,8 @@ _kmem_unback(vm_object_t object, vm_offset_t addr, vm_size_t size)
|
|||
pmap_remove(kernel_pmap, addr, addr + size);
|
||||
offset = addr - VM_MIN_KERNEL_ADDRESS;
|
||||
end = offset + size;
|
||||
VM_OBJECT_WLOCK(object);
|
||||
vm_page_iter_init(&pages, object);
|
||||
VM_OBJECT_WLOCK(object);
|
||||
m = vm_radix_iter_lookup(&pages, atop(offset));
|
||||
domain = vm_page_domain(m);
|
||||
if (__predict_true((m->oflags & VPO_KMEM_EXEC) == 0))
|
||||
|
|
|
|||
Loading…
Reference in a new issue