summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index 602b659..fded099 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -1081,7 +1081,8 @@ vm_fault_unwire(map, start, end)
pmap = vm_map_pmap(map);
- mtx_lock(&Giant);
+ 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.
@@ -1095,7 +1096,8 @@ vm_fault_unwire(map, start, end)
vm_page_unlock_queues();
}
}
- mtx_unlock(&Giant);
+ if (pmap != kernel_pmap)
+ mtx_unlock(&Giant);
}
/*
OpenPOWER on IntegriCloud