- Grab the lock type that the caller requests in vfs_hash_insert().
Sponsored by: Isilon Systems, Inc.
This commit is contained in:
parent
c167961e27
commit
5d14d29912
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144052
@ -109,7 +109,7 @@ vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td, stru
|
||||
struct vnode *vp2;
|
||||
int error;
|
||||
|
||||
lockmgr(vp->v_vnlock, LK_EXCLUSIVE, NULL, td);
|
||||
lockmgr(vp->v_vnlock, flags & LK_TYPE_MASK, NULL, td);
|
||||
*vpp = NULL;
|
||||
while (1) {
|
||||
mtx_lock(&vfs_hash_mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user