Whamcloud - gitweb
LU-9019 obd: express timeouts in timeout_t 76/31576/24
authorJames Simmons <jsimmons@infradead.org>
Wed, 22 Apr 2020 14:13:45 +0000 (10:13 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 23 Apr 2020 16:48:45 +0000 (16:48 +0000)
commit6c6f247bc08bb6c3a3c07d2da2774a54fd244c9a
treecb6f0b9411b5076ec02627840b125b52cd577e9e
parent8f6b0aacc0e905bad7aebddfd838cbd610f17483
LU-9019 obd: express timeouts in timeout_t

In the latest kernels time_t has been removed since time_t has
been a 64 bit value just like time64_t so no need for it anymore.
To avoid confusion between timestamps and timeout values Lustre
has a timeout_t typedef which is in seconds and is a s32 since
timeouts are generally short. This helps to avoid errors that
has happens in the past with certain math operation between
timeouts and timestamps that lead to overflow and underflow
cases.

Change-Id: I4524456d514561e145201079a420ff89fa829602
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/31576
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
22 files changed:
lustre/include/lustre_dlm.h
lustre/include/lustre_import.h
lustre/include/lustre_net.h
lustre/include/obd.h
lustre/ldlm/ldlm_extent.c
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_resource.c
lustre/mdd/mdd_trans.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_io.c
lustre/obdclass/lprocfs_status.c
lustre/obdclass/lprocfs_status_server.c
lustre/ofd/ofd_dev.c
lustre/ptlrpc/client.c
lustre/ptlrpc/import.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/niobuf.c
lustre/ptlrpc/service.c
lustre/quota/qmt_handler.c