diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-05 08:18:45 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2024-11-05 08:18:45 +0000 |
commit | 4d087db018c9ffdd26b46aece71b956e10b04f29 (patch) | |
tree | cd78f7ec5fee399c72adcfa664972c104829c50b /sys/uvm | |
parent | 0a8c5bf55f199638885c50544e916d6d57709f40 (diff) |
Stop grabbging the KERNEL_LOCK() for uvm_fault_unwire_locked() in the reaper.
The vmap lock is enough to unwire entries.
ok kettenis@
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_map.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 2feb604516a..91b8a4632b4 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.333 2024/10/31 05:00:00 dlg Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.334 2024/11/05 08:18:44 mpi Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -1856,10 +1856,8 @@ uvm_unmap_kill_entry_withlock(struct vm_map *map, struct vm_map_entry *entry, { /* Unwire removed map entry. */ if (VM_MAPENT_ISWIRED(entry)) { - KERNEL_LOCK(); entry->wired_count = 0; uvm_fault_unwire_locked(map, entry->start, entry->end); - KERNEL_UNLOCK(); } if (needlock) |