vfs_hash_rehash(): require the vnode to be exclusively locked
(cherry picked from commit f19063ab02
)
This commit is contained in:
parent
ae32239528
commit
6103f34e54
@ -196,6 +196,7 @@ vfs_hash_insert(struct vnode *vp, u_int hash, int flags, struct thread *td,
|
||||
void
|
||||
vfs_hash_rehash(struct vnode *vp, u_int hash)
|
||||
{
|
||||
ASSERT_VOP_ELOCKED(vp, "rehash requires excl lock");
|
||||
|
||||
rw_wlock(&vfs_hash_lock);
|
||||
LIST_REMOVE(vp, v_hashlist);
|
||||
|
Loading…
Reference in New Issue
Block a user