summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-09-01 19:18:59 +0000
committeralc <alc@FreeBSD.org>2004-09-01 19:18:59 +0000
commit38af5e4b6bfb94bc8ecbb0d4d988ecfc2a330bdd (patch)
tree69d235ef369b2dda4d853c200c10fb44a2746501 /sys/vm/vm_fault.c
parentcddfbc44fa83e820972b92c7dba1229ecfcecb44 (diff)
downloadFreeBSD-src-38af5e4b6bfb94bc8ecbb0d4d988ecfc2a330bdd.zip
FreeBSD-src-38af5e4b6bfb94bc8ecbb0d4d988ecfc2a330bdd.tar.gz
In vm_fault_unwire() eliminate the acquisition and release of Giant in the
case of non-kernel pmaps.
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 318e9ba..b6e8b52 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1053,8 +1053,6 @@ vm_fault_unwire(vm_map_t map, vm_offset_t start, vm_offset_t end,
pmap = vm_map_pmap(map);
- if (pmap != kernel_pmap)
- mtx_lock(&Giant);
/*
* Since the pages are wired down, we must be able to get their
* mappings from the physical map system.
@@ -1070,8 +1068,6 @@ vm_fault_unwire(vm_map_t map, vm_offset_t start, vm_offset_t end,
}
}
}
- if (pmap != kernel_pmap)
- mtx_unlock(&Giant);
}
/*
OpenPOWER on IntegriCloud