usr/src/uts/common/fs/zfs/dsl_pool.c
changeset 9366 17553395a745
parent 9321 dca349c475c1
child 9396 f41cf682d0d3
--- a/usr/src/uts/common/fs/zfs/dsl_pool.c	Tue Apr 14 16:59:32 2009 +0100
+++ b/usr/src/uts/common/fs/zfs/dsl_pool.c	Tue Apr 14 12:34:42 2009 -0600
@@ -301,6 +301,7 @@
 	tx = dmu_tx_create_assigned(dp, txg);
 
 	dp->dp_read_overhead = 0;
+	start = gethrtime();
 	zio = zio_root(dp->dp_spa, NULL, NULL, ZIO_FLAG_MUSTSUCCEED);
 	while (ds = txg_list_remove(&dp->dp_dirty_datasets, txg)) {
 		if (!list_link_active(&ds->ds_synced_link))
@@ -311,7 +312,6 @@
 	}
 	DTRACE_PROBE(pool_sync__1setup);
 
-	start = gethrtime();
 	err = zio_wait(zio);
 	write_time = gethrtime() - start;
 	ASSERT(err == 0);