HomeFreeBSD

Add ASSERT to debug encryption key mapping issues

Description

Add ASSERT to debug encryption key mapping issues

This patch simply adds an ASSERT that confirms that the last
decrypting reference on a dataset waits until the dataset is
no longer dirty. This should help to debug issues where the
ZIO layer cannot find encryption keys after a dataset has been
disowned.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7637

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Jun 18 2018, 9:10 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 18 2018, 9:10 PM
Parents
rG517d2471921f: copy-builtin: SPL must be in Kbuild first
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGcd32e5db8bb4: Add ASSERT to debug encryption key mapping issues (authored by Tom Caputi <tcaputi@datto.com>).Jun 18 2018, 9:10 PM