diff options
author | jeff <jeff@FreeBSD.org> | 2005-03-24 06:16:27 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-03-24 06:16:27 +0000 |
commit | 6d5bd3a0a22ea80efd9fd6571b4f991947efc3c6 (patch) | |
tree | 12dc5288da57b383b02fd6eff41f3e549d85dbb6 /sys/kern/vfs_hash.c | |
parent | bf2e6f43e88a9251233204f4226aba4d6956c835 (diff) | |
download | FreeBSD-src-6d5bd3a0a22ea80efd9fd6571b4f991947efc3c6.zip FreeBSD-src-6d5bd3a0a22ea80efd9fd6571b4f991947efc3c6.tar.gz |
- Grab the lock type that the caller requests in vfs_hash_insert().
Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/kern/vfs_hash.c')
-rw-r--r-- | sys/kern/vfs_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_hash.c b/sys/kern/vfs_hash.c index 646f1be..e441259 100644 --- a/sys/kern/vfs_hash.c +++ b/sys/kern/vfs_hash.c @@ -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); |