HomeFreeBSD

Assert if we're logging after final txg was set

Description

Assert if we're logging after final txg was set

This allowed to debug #16714, fixed in #16782. Without assertions
added here it is difficult to figure out what logs cause the problem,
since the assertion happens in sync thread context.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Co-authored-by: Alexander Motin <mav@FreeBSD.org>
Closes #16795

Details

Provenance
Pavel Snajdr <snajpa@snajpa.net>Authored on Nov 25 2024, 11:37 PM
GitHub <noreply@github.com>Committed on Nov 25 2024, 11:37 PM
Parents
rGd0a91b9f88a4: FreeBSD: Reduce copy_file_range() source lock to shared
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGd2b0ca953f16: Assert if we're logging after final txg was set (authored by Pavel Snajdr <snajpa@snajpa.net>).Nov 25 2024, 11:37 PM