]> git.proxmox.com Git - mirror_zfs.git/commit
ZIL: Tune some assertions.
authorAlexander Motin <mav@FreeBSD.org>
Sat, 2 Sep 2023 00:13:22 +0000 (20:13 -0400)
committerGitHub <noreply@github.com>
Sat, 2 Sep 2023 00:13:22 +0000 (17:13 -0700)
commitbbcf18c293655d7771e346202413beccc64a69d6
tree0485931e1ebbb9a3faaced2bb8053c1dcb933565
parent010c003e5f9e345878243528a4ae857ebb4d5e8b
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