From 63fd3c6cfd264cab94dc186fe8cceecac8bc0d50 Mon Sep 17 00:00:00 2001 From: Adam Leventhal Date: Wed, 28 Aug 2013 16:05:48 -0700 Subject: Illumos #3582, #3584 3582 zfs_delay() should support a variable resolution 3584 DTrace sdt probes for ZFS txg states Reviewed by: Matthew Ahrens Reviewed by: George Wilson Reviewed by: Christopher Siden Reviewed by: Dan McDonald Reviewed by: Richard Elling Approved by: Garrett D'Amore References: https://www.illumos.org/issues/3582 illumos/illumos-gate@0689f76 Ported by: Ned Bass Signed-off-by: Brian Behlendorf Issue #1775 --- include/sys/txg.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'include/sys/txg.h') diff --git a/include/sys/txg.h b/include/sys/txg.h index b9bbba8be..9e547819b 100644 --- a/include/sys/txg.h +++ b/include/sys/txg.h @@ -74,13 +74,8 @@ extern void txg_rele_to_quiesce(txg_handle_t *txghp); extern void txg_rele_to_sync(txg_handle_t *txghp); extern void txg_register_callbacks(txg_handle_t *txghp, list_t *tx_callbacks); -/* - * Delay the caller by the specified number of ticks or until - * the txg closes (whichever comes first). This is intended - * to be used to throttle writers when the system nears its - * capacity. - */ -extern void txg_delay(struct dsl_pool *dp, uint64_t txg, int ticks); +extern void txg_delay(struct dsl_pool *dp, uint64_t txg, hrtime_t delta, + hrtime_t resolution); /* * Wait until the given transaction group has finished syncing. -- cgit v1.2.3