]> granicus.if.org Git - zfs/commit
Add ASSERT to debug encryption key mapping issues
authorTom Caputi <tcaputi@datto.com>
Mon, 18 Jun 2018 21:10:54 +0000 (17:10 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 18 Jun 2018 21:10:54 +0000 (14:10 -0700)
commitcd32e5db8bb4411533dc21cfc12a5af5f3b56701
tree4e0d5b1cda63b2c5603c3995c066aaf2ffcea200
parent517d2471921fc44622dc737b09b655829b8c9c6f
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
include/sys/dmu.h
module/zfs/dbuf.c
module/zfs/dsl_dataset.c