Whamcloud - gitweb
LU-13344 lnet: stop using struct timeval 05/38105/21
authorJames Simmons <jsimmons@infradead.org>
Wed, 6 May 2020 21:41:58 +0000 (17:41 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 14 May 2020 05:40:10 +0000 (05:40 +0000)
commit5e4c658c4fea4f2b10c2877394eec824474ecc66
tree0a920f76904afed379814a4eaaba38079f17fa8b
parent32989af838f8b5fa161014db732cd31934aa921a
LU-13344 lnet: stop using struct timeval

The struct timeval is not 2038 safe so the Linux kernel is moving
away from its use. The use of rpe_stamp hasn't been used since
Lustre 2.2 so remove the userland use of this field. This frees
use to change rpe_stamp to an equivalent struct timespec64 for
future use. Greatly simplify lnet_sock_[read|write] by using
jiffies values of sk_sndtimeo, sk_rcvtimeo cached in struct sock.

Change-Id: Ib58193756ec4a526e55bc810c05abd3920b2b269
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/38105
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-time.h
lnet/include/uapi/linux/lnet/lnetst.h
lnet/lnet/lib-socket.c
lnet/selftest/conctl.c
lnet/selftest/conrpc.c
lnet/selftest/conrpc.h
lnet/selftest/console.h
lnet/utils/lst.c
lustre/include/uapi/linux/lustre/lustre_user.h