HomeFreeBSD

zfs_dbgmsg_print: make FreeBSD and Linux consistent

Description

zfs_dbgmsg_print: make FreeBSD and Linux consistent

FreeBSD was using fprintf(), which might not be signal-safe. Meanwhile,
Linux's locking did not cover the header output. This two quirks are
unrelated, but both have the same response: be like the other one. So
with this commit, both functions are the same except for the names of
their lock and list variables.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16181

Details

Provenance
rob.norris_klarasystems.comAuthored on May 10 2024, 3:54 AM
Tony Hutter <hutter2@llnl.gov>Committed on Nov 15 2024, 6:15 PM
Parents
rGe580b543a8f4: zfs_znode: lift common code to a single shared file
Branches
Unknown
Tags
Unknown