Whamcloud - gitweb
LU-9019 ptlrpc: migrate pinger to 64 bit time 35/28035/12
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 13 Sep 2017 15:44:56 +0000 (11:44 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 2 Oct 2017 02:29:51 +0000 (02:29 +0000)
commit44bdc137c901e91d6eafadf3167cc6dfe08b93f2
treeee197351afce510777e5db9623512e3eff493da9
parent7fc8037d61b29fa2ac93ab5fb30fccd9b1c0066c
LU-9019 ptlrpc: migrate pinger to 64 bit time

Replace cfs_time_current_sec() to avoid the overflow
issues in 2038 with ktime_get_real_seconds(). Remove
cfs_timeout_cap() and CFS_DURATION abstraction. Change
imp_next_ping, obd_eviction_timer, and ti_timeout to
time64_t. With these changes the pinger will be 64
bit time compliant.

Change-Id: I447dfa5d47ce947a5afa7203326b6486b8855912
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/28035
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
17 files changed:
libcfs/include/libcfs/libcfs_time.h
libcfs/include/libcfs/linux/linux-time.h
lustre/include/lustre_export.h
lustre/include/lustre_import.h
lustre/include/lustre_net.h
lustre/include/obd.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/genops.c
lustre/osc/lproc_osc.c
lustre/osc/osc_request.c
lustre/ptlrpc/client.c
lustre/ptlrpc/import.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/ptlrpcd.c
lustre/ptlrpc/recover.c
lustre/ptlrpc/service.c