summaryrefslogtreecommitdiffstats
path: root/module/zfs/dmu_tx.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-09-30 11:45:58 -0700
committerBrian Behlendorf <[email protected]>2013-10-25 13:57:25 -0700
commit98ab38d1096079d82247350f526f0d7268956fb5 (patch)
tree95f795984446c967239bcb5fb1b94a404ac82531 /module/zfs/dmu_tx.c
parent11cb9d773f48830cf3ff718861c070a8937c6a03 (diff)
Revert "Add new kstat for monitoring time in dmu_tx_assign"
This reverts commit 92334b14ec378b1693573b52c09816bbade9cf3e. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/dmu_tx.c')
-rw-r--r--module/zfs/dmu_tx.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/module/zfs/dmu_tx.c b/module/zfs/dmu_tx.c
index 3e46a02f8..17982a04e 100644
--- a/module/zfs/dmu_tx.c
+++ b/module/zfs/dmu_tx.c
@@ -1077,15 +1077,12 @@ dmu_tx_unassign(dmu_tx_t *tx)
int
dmu_tx_assign(dmu_tx_t *tx, txg_how_t txg_how)
{
- hrtime_t before, after;
int err;
ASSERT(tx->tx_txg == 0);
ASSERT(txg_how == TXG_WAIT || txg_how == TXG_NOWAIT);
ASSERT(!dsl_pool_sync_context(tx->tx_pool));
- before = gethrtime();
-
/* If we might wait, we must not hold the config lock. */
ASSERT(txg_how != TXG_WAIT || !dsl_pool_config_held(tx->tx_pool));
@@ -1100,11 +1097,6 @@ dmu_tx_assign(dmu_tx_t *tx, txg_how_t txg_how)
txg_rele_to_quiesce(&tx->tx_txgh);
- after = gethrtime();
-
- dsl_pool_tx_assign_add_usecs(tx->tx_pool,
- (after - before) / NSEC_PER_USEC);
-
return (0);
}