Cyril Plisko
01b738f457
Call gethrtime() only once per new txg creation
...
When transitioning current open TXG into QUIESCE state and opening
a new one txg_quiesce() calls gethrtime():
- to mark the birth time of the new TXG
- to record the SPA txg history kstat
- implicitely inside spa_txg_history_add()
These timestamps are practically the same, so that the first one
can be used instead of the other two. The only visible difference
is that inside spa_txg_history_add() the time spent in kmem_zalloc()
will be counted towards the opened TXG.
Since at this point the new TXG already exists (tx->tx_open_txg
has been already incremented) it is actually a correct accounting.
In any case this extra work is only happening when spa_txg_history
kstat is activated (i.e. zfs_txg_history > 0) and doesn't affect
the normal processing in any way.
Signed-off-by: Cyril Plisko <cyril.plisko@mountall.com>
Issue #2075
2014-01-23 13:31:51 -08:00
..
2014-01-07 10:33:11 -08:00
2013-09-04 16:01:24 -07:00
2013-10-31 14:57:51 -07:00
2013-11-05 13:18:26 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-01-07 10:33:11 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-11-14 14:28:12 -08:00
2013-12-06 09:32:43 -08:00
2014-01-23 12:56:33 -08:00
2013-12-18 16:46:35 -08:00
2013-11-04 10:55:25 -08:00
2013-12-06 09:32:43 -08:00
2013-12-18 16:46:35 -08:00
2013-01-08 10:35:43 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-11-04 10:55:25 -08:00
2013-12-18 16:46:35 -08:00
2013-10-31 14:58:04 -07:00
2013-12-02 14:02:46 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-01-09 15:54:03 -08:00
2013-12-18 16:46:35 -08:00
2013-10-25 13:59:40 -07:00
2013-12-18 16:46:35 -08:00
2013-09-04 16:01:24 -07:00
2013-09-25 15:44:22 -07:00
2013-12-20 13:52:33 -08:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2013-11-05 12:23:05 -08:00
2013-11-04 10:55:25 -08:00
2013-12-18 16:46:35 -08:00
2014-01-07 10:33:11 -08:00
2014-01-23 13:31:51 -08:00
2013-12-18 16:46:35 -08:00
2013-09-04 16:01:24 -07:00
2014-01-23 13:31:51 -08:00
2013-10-31 14:58:04 -07:00
2012-08-27 12:01:37 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-01-23 09:58:07 -08:00
2013-12-18 16:46:35 -08:00
2013-12-06 09:32:43 -08:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-12-06 09:32:43 -08:00
2013-10-31 14:58:04 -07:00
2013-12-06 09:32:43 -08:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-11-04 10:55:25 -08:00
2013-01-29 09:28:20 -08:00
2013-12-18 16:46:35 -08:00
2014-01-23 11:07:29 -08:00
2010-08-31 13:41:58 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-06 09:30:51 -08:00
2013-12-06 09:32:43 -08:00
2013-10-30 14:51:27 -07:00
2014-01-07 09:00:26 -08:00
2013-11-23 15:08:29 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-01-09 15:54:08 -08:00
2014-01-09 15:50:23 -08:00
2014-01-09 15:50:11 -08:00
2013-12-18 16:46:35 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2010-05-28 13:45:14 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2010-09-17 16:24:15 -07:00
2014-01-14 14:46:12 -08:00