Eliminate the acquisition and release of Giant from vnode_pager_alloc().
The vm object and vnode locking should suffice. Discussed with: jeff
This commit is contained in:
parent
8bf6313448
commit
a67048571f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user