summaryrefslogtreecommitdiffstats
path: root/module/zfs/txg.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/txg.c')
-rw-r--r--module/zfs/txg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/txg.c b/module/zfs/txg.c
index c779c4b9a..89615a21a 100644
--- a/module/zfs/txg.c
+++ b/module/zfs/txg.c
@@ -555,6 +555,9 @@ txg_sync_thread(dsl_pool_t *dp)
txg, tx->tx_quiesce_txg_waiting, tx->tx_sync_txg_waiting);
mutex_exit(&tx->tx_sync_lock);
+ spa_txg_history_set(spa, txg, TXG_STATE_WAIT_FOR_SYNC,
+ gethrtime());
+
start = ddi_get_lbolt();
spa_sync(spa, txg);
delta = ddi_get_lbolt() - start;