HomeFreeBSD

FreeBSD: Lock vnode in zfs_ioctl()

Description

FreeBSD: Lock vnode in zfs_ioctl()

Previously vnode was not locked there, unlike Linux. It required
locking it in vn_flush_cached_data(), which recursed on the lock
if called from zfs_clone_range(), having the vnode locked.

Reviewed-by: Alan Somers <asomers@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16789
Closes #16796

Details

Provenance
mavAuthored on Nov 23 2024, 10:26 PM
GitHub <noreply@github.com>Committed on Nov 23 2024, 10:26 PM
Parents
rG38c0324c0fb6: Linux: Fix zfs_prune panics
Branches
Unknown
Tags
Unknown