HomeFreeBSD

geom_vfs: lock devvp in g_vfs_close()

Description

geom_vfs: lock devvp in g_vfs_close()

It is needed for g_vfs_close() invalidating the buffers. We rely on the
vnode lock for correctness.

Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D32761

Details

Provenance
kibAuthored on Nov 1 2021, 5:46 AM
Reviewer
markj
Differential Revision
D32761: DEBUG_VFS_LOCKS: stop excluding devfs and doomed vnode from asserts
Parents
rGdf07bfda67ad: tcp: Fix a locking issue
Branches
Unknown
Tags
Unknown