summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-01-04 03:18:24 +0000
committeralc <alc@FreeBSD.org>2004-01-04 03:18:24 +0000
commit010f82e1329f25cf3d69dfc3d90f110ad9669aa0 (patch)
tree02205f72b73cb4ea9828e8c5d6e3944b60123b6c
parentcc0f677dae73816e334103ecca82ca9875ad0e48 (diff)
downloadFreeBSD-src-010f82e1329f25cf3d69dfc3d90f110ad9669aa0.zip
FreeBSD-src-010f82e1329f25cf3d69dfc3d90f110ad9669aa0.tar.gz
Eliminate the acquisition and release of Giant from vnode_pager_alloc().
The vm object and vnode locking should suffice. Discussed with: jeff
-rw-r--r--sys/vm/vnode_pager.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index a5d118e..fd69c66 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -122,7 +122,6 @@ vnode_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
ASSERT_VOP_LOCKED(vp, "vnode_pager_alloc");
- mtx_lock(&Giant);
/*
* Prevent race condition when allocating the object. This
* can happen with NFS vnodes since the nfsnode isn't locked.
@@ -171,7 +170,6 @@ vnode_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
wakeup(vp);
}
VI_UNLOCK(vp);
- mtx_unlock(&Giant);
return (object);
}
OpenPOWER on IntegriCloud