HomeFreeBSD

ZIL: Tune some assertions.

Description

ZIL: Tune some assertions.

In zil_free_lwb() we should first assert lwb_state or the rest of
assertions can be misleading if it is false.

Add lwb_state assertions in zil_lwb_add_block() to make sure we are
not trying to add elements to lwb_vdev_tree after it was processed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15227

Details

Provenance
mavAuthored on Sep 2 2023, 12:13 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 2 2023, 5:30 PM
Parents
rG400f56e3f863: dmu_buf_will_clone: change assertion to fix 32-bit compiler warning
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG5a7cb0b06578: ZIL: Tune some assertions. (authored by mav).Sep 2 2023, 5:30 PM