summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorTom Caputi <[email protected]>2018-06-18 17:10:54 -0400
committerBrian Behlendorf <[email protected]>2018-06-18 14:10:54 -0700
commitcd32e5db8bb4411533dc21cfc12a5af5f3b56701 (patch)
tree4e0d5b1cda63b2c5603c3995c066aaf2ffcea200 /include/sys
parent517d2471921fc44622dc737b09b655829b8c9c6f (diff)
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 <[email protected]> Signed-off-by: Tom Caputi <[email protected]> Closes #7637
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/dmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/dmu.h b/include/sys/dmu.h
index e5950be93..44c026286 100644
--- a/include/sys/dmu.h
+++ b/include/sys/dmu.h
@@ -557,6 +557,7 @@ boolean_t dmu_buf_try_add_ref(dmu_buf_t *, objset_t *os, uint64_t object,
void dmu_buf_rele(dmu_buf_t *db, void *tag);
uint64_t dmu_buf_refcount(dmu_buf_t *db);
+uint64_t dmu_buf_user_refcount(dmu_buf_t *db);
/*
* dmu_buf_hold_array holds the DMU buffers which contain all bytes in a