diff options
author | Olaf Faaland <[email protected]> | 2018-02-22 15:34:34 -0800 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2018-03-14 16:10:37 -0700 |
commit | 2644784f49a6b6be063d54ca0e1662ee6bef7ebd (patch) | |
tree | 85b4a537992ef6f0721a144cf6e2d25ed59038be /include/sys/mmp.h | |
parent | b1f61f05b4b2edc77ec5f3d28d041d7b3c873f01 (diff) |
Report duration and error in mmp_history entries
After an MMP write completes, update the relevant mmp_history entry
with the time between submission and completion, and the error
status of the write.
[faaland1@toss3a zfs]$ cat /proc/spl/kstat/zfs/pool/multihost
39 0 0x01 100 8800 69147946270893 72723903122926
id txg timestamp error duration mmp_delay vdev_guid
10607 1166 1518985089 0 138301 637785455 4882...
10608 1166 1518985089 0 136154 635407747 1151...
10609 1166 1518985089 0 803618560 633048078 9740...
10610 1166 1518985090 0 144826 633048078 4882...
10611 1166 1518985090 0 164527 666187671 1151...
Where duration = gethrtime_in_done_fn - gethrtime_at_submission, and
error = zio->io_error.
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Olaf Faaland <[email protected]>
Closes #7190
Diffstat (limited to 'include/sys/mmp.h')
-rw-r--r-- | include/sys/mmp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/mmp.h b/include/sys/mmp.h index 5b2fea1a6..1ce685f9c 100644 --- a/include/sys/mmp.h +++ b/include/sys/mmp.h @@ -42,6 +42,7 @@ typedef struct mmp_thread { uint64_t mmp_delay; /* decaying avg ns between MMP writes */ uberblock_t mmp_ub; /* last ub written by sync */ zio_t *mmp_zio_root; /* root of mmp write zios */ + uint64_t mmp_kstat_id; /* unique id for next MMP write kstat */ } mmp_thread_t; |