Whamcloud - gitweb
LU-9019 osd : remove struct timeval use in osd-ldiskfs 96/24896/2
authorJames Simmons <uja.ornl@yahoo.com>
Fri, 13 Jan 2017 21:39:23 +0000 (16:39 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Jan 2017 05:21:43 +0000 (05:21 +0000)
commit770d4a4174d396cf1a022b1c8de80bd022789f0d
tree2139639f431ae7accccbae6a8908793ecaa5ce95
parentfb64c701791e591f4fd1a849e4be774ff85145fc
LU-9019 osd : remove struct timeval use in osd-ldiskfs

For brw_stats_show change the output to use a timespec64
type to avoid the overflow. Also change the format to
print the sub-second portion as 9 digits (nanoseconds)
for clarity, rather than printing six digits without
leading zeroes.

Both osd_write_prep() and osd_read_prep() want to report
the time it took to perform its operations in the
osd_get_page counter. This is currently done with
a call to do_gettimeofday with struct timeval which is
not 2038 safe. Move this operation to 64 bit time
handling.

Change-Id: I457ac799d855d2596220b6e0d0c5039e8b00021f
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/24896
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_lproc.c