HomeFreeBSD

zpl_sync_fs: work around kernels that ignore sync_fs errors

Description

zpl_sync_fs: work around kernels that ignore sync_fs errors

If the kernel will honour our error returns, use them. If not, fool it
by setting a writeback error on the superblock, if available.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17420

Details

Provenance
rob.norris_klarasystems.comAuthored on Jun 4 2025, 3:26 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 12 2025, 9:42 PM
Parents
rGe3f5e317e0ed: zfs_sync: return error when pool suspends
Branches
Unknown
Tags
Unknown