ZIL: Tune some assertions.
commit5a7cb0b06578688bb80ad739f3b3ac4f1492b1fa
authorAlexander Motin <mav@FreeBSD.org>
Sat, 2 Sep 2023 00:13:22 +0000 (1 20:13 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 2 Sep 2023 17:30:38 +0000 (2 10:30 -0700)
tree16ce464237dad6c848560befa015b165698e3097
parent400f56e3f86311f622bea4872cf3ccf19ce421b8
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
module/zfs/zil.c