HomeFreeBSD

linux/rw_destroy: assert no holders before destroying

Description

linux/rw_destroy: assert no holders before destroying

While rw_destroy() may do nothing on Linux, we still want to make sure
that we don't have any holders outstanding like we do for mutexes.

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

Details

Provenance
rob.norris_klarasystems.comAuthored on Sep 10 2025, 3:59 PM
GitHub <noreply@github.com>Committed on Sep 10 2025, 3:59 PM
Parents
rG7939bad5e792: Linux 6.17: d_set_d_op() is no longer available
Branches
Unknown
Tags
Unknown