From 3c3f826d7e003fc9244939dd7a93f369a92aedca Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 19 Apr 2002 02:08:33 +0000 Subject: [PATCH] o Remove vm_map_growstack() from ia64's trap_pfault(). o Remove the acquisition and release of Giant from ia64's trap_pfault(). (vm_fault() still acquires it.) --- sys/ia64/ia64/trap.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index 1283899b6db..eac72728a24 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -540,7 +540,6 @@ trap(int vector, int imm, struct trapframe *framep) td->td_pcb->pcb_onfault = 0; goto out; } - mtx_lock(&Giant); /* * It is only a kernel address space fault iff: @@ -592,20 +591,8 @@ trap(int vector, int imm, struct trapframe *framep) ++p->p_lock; PROC_UNLOCK(p); - /* - * Grow the stack if necessary - */ - /* vm_map_growstack fails only if va falls into - * a growable stack region and the stack growth - * fails. It succeeds if va was not within - * a growable stack region, or if the stack - * growth succeeded. - */ - if (vm_map_growstack(p, va) != KERN_SUCCESS) - rv = KERN_FAILURE; - else - /* Fault in the user page: */ - rv = vm_fault(map, va, ftype, + /* Fault in the user page: */ + rv = vm_fault(map, va, ftype, (ftype & VM_PROT_WRITE) ? VM_FAULT_DIRTY : VM_FAULT_NORMAL); @@ -620,7 +607,6 @@ trap(int vector, int imm, struct trapframe *framep) */ rv = vm_fault(map, va, ftype, VM_FAULT_NORMAL); } - mtx_unlock(&Giant); if (rv == KERN_SUCCESS) goto out;