aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRicardo M. Correia <[email protected]>2011-01-21 14:35:41 -0800
committerBrian Behlendorf <[email protected]>2011-02-16 11:20:06 -0800
commit54a179e7b80413bd48cd2cd259110fb493d0215e (patch)
tree8bce4e2af34f745165ee0b225e0616ee823dfc7d /include
parent8d4e8140ef67fa9c8fa0b1d0f5b1d5d36c747969 (diff)
Add API to wait for pending commit callbacks
This adds an API to wait for pending commit callbacks of already-synced transactions to finish processing. This is needed by the DMU-OSD in Lustre during device finalization when some callbacks may still not be called, this leads to non-zero reference count errors. See lustre.org bug 23931.
Diffstat (limited to 'include')
-rw-r--r--include/sys/txg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/txg.h b/include/sys/txg.h
index e323d5efa..263693846 100644
--- a/include/sys/txg.h
+++ b/include/sys/txg.h
@@ -108,6 +108,12 @@ extern boolean_t txg_stalled(struct dsl_pool *dp);
extern boolean_t txg_sync_waiting(struct dsl_pool *dp);
/*
+ * Wait for pending commit callbacks of already-synced transactions to finish
+ * processing.
+ */
+extern void txg_wait_callbacks(struct dsl_pool *dp);
+
+/*
* Per-txg object lists.
*/