Whamcloud - gitweb
LU-11771 osd: avoid use of HZ in brw_stats 57/33857/2
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 14 Dec 2018 02:57:17 +0000 (19:57 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Jan 2019 04:49:15 +0000 (04:49 +0000)
commit8d83e946bc96df6535d9f501db400e2196a45668
tree549f94c86779be3389ed827c4470a5d0ea9fdf17
parent622a94d5e27ed3e596918863c08b304a6be9a646
LU-11771 osd: avoid use of HZ in brw_stats

Don't use HZ when computing the brw_stats IO time.  This brw_stats
field was formerly in jiffies, but since the conversion to ktime_t
(now always in msec) the output is incorrect when HZ != 1000.

Fixes: 4c2f028a95063aa30006a071a039e8a3eefe52f2

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ia01705b94ddedec2e375621c6e01a957f53ebbe5
Reviewed-on: https://review.whamcloud.com/33857
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <c17829@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-zfs/osd_io.c
lustre/osd-zfs/osd_lproc.c