git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'dmu_tx' kstats entry
[zfs.git]
/
module
/
zfs
/
txg.c
diff --git
a/module/zfs/txg.c
b/module/zfs/txg.c
index
340c42a
..
6e64adf
100644
(file)
--- a/
module/zfs/txg.c
+++ b/
module/zfs/txg.c
@@
-506,7
+506,7
@@
void
txg_delay(dsl_pool_t *dp, uint64_t txg, int ticks)
{
tx_state_t *tx = &dp->dp_tx;
txg_delay(dsl_pool_t *dp, uint64_t txg, int ticks)
{
tx_state_t *tx = &dp->dp_tx;
-
in
t timeout = ddi_get_lbolt() + ticks;
+
clock_
t timeout = ddi_get_lbolt() + ticks;
/* don't delay if this txg could transition to quiesing immediately */
if (tx->tx_open_txg > txg ||
/* don't delay if this txg could transition to quiesing immediately */
if (tx->tx_open_txg > txg ||
@@
-524,6
+524,8
@@
txg_delay(dsl_pool_t *dp, uint64_t txg, int ticks)
(void) cv_timedwait(&tx->tx_quiesce_more_cv, &tx->tx_sync_lock,
timeout);
(void) cv_timedwait(&tx->tx_quiesce_more_cv, &tx->tx_sync_lock,
timeout);
+ DMU_TX_STAT_BUMP(dmu_tx_delay);
+
mutex_exit(&tx->tx_sync_lock);
}
mutex_exit(&tx->tx_sync_lock);
}