HomeFreeBSD

syncer VOP_FSYNC(): unlock syncer vnode around call to VFS_SYNC()

Description

syncer VOP_FSYNC(): unlock syncer vnode around call to VFS_SYNC()

The lock is unneccessary since the mount point is busied, which prevents
unmount and syncer vnode deallocation. Having the vnode locked causes
innocent LoRs and complicates debugging.

Also stop starting write accounting around it. Any caller of
VOP_FSYNC() must do it already, and sync_vnode() does.

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

Details

Provenance
kibAuthored on Jan 21 2022, 3:42 PM
Reviewer
markj
Differential Revision
D34072: Useful changes taken from D33921
Parents
rG5875b94c7493: buf_alloc(): lock the buffer with LK_NOWAIT
Branches
Unknown
Tags
Unknown