HomeFreeBSD

vfs_hash_rehash(): require the vnode to be exclusively locked

Description

vfs_hash_rehash(): require the vnode to be exclusively locked

Rehash updates v_hash. Also, rehash moves the vnode to different hash
bucket, which should be noticed in vfs_hash_get() after sleeping for
the vnode lock.

Reviewed by: mckusick, rmacklem
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D31464

Details

Provenance
kibAuthored on Aug 18 2021, 11:14 AM
Reviewer
mckusick
Differential Revision
D31464: Some fixes for msdosfs_rename and ufs_rename
Parents
rG7c1e4aab7934: vfs_hash_insert: ensure that predicate is true
Branches
Unknown
Tags
Unknown