HomeFreeBSD

FreeBSD: vn_flush_cached_data: observe vnode locking contract

Description

FreeBSD: vn_flush_cached_data: observe vnode locking contract

vm_object_page_clean() expects that the associated vnode is locked
as VOP_PUTPAGES() may get called on the vnode.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Andriy Gapon <avg@FreeBSD.org>
Closes #14079
(cherry picked from commit 41133c97949af43daadee0503a9842a8dce8f0fd)

Details

Provenance
avgAuthored on Oct 26 2022, 10:00 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 27 2022, 11:14 PM
Parents
rG4e3fecbdfd54: FreeBSD: Fix a pair of bugs in zfs_fhtovp()
Branches
Unknown
Tags
Unknown