diff options
author | Ricardo M. Correia <[email protected]> | 2011-01-21 14:35:41 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-02-16 11:20:06 -0800 |
commit | 54a179e7b80413bd48cd2cd259110fb493d0215e (patch) | |
tree | 8bce4e2af34f745165ee0b225e0616ee823dfc7d /include/sys | |
parent | 8d4e8140ef67fa9c8fa0b1d0f5b1d5d36c747969 (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/sys')
-rw-r--r-- | include/sys/txg.h | 6 |
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. */ |