staging/lustre: use 64-bit timestamps for selftest
authorArnd Bergmann <arnd@arndb.de>
Sun, 27 Sep 2015 20:45:16 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:03:36 +0000 (04:03 +0200)
commit1f8c37a4e29bb4794950228d2d9571029f277d7b
treebd4090bf6fa748029557293cbf6a3df69fc7fefd
parent23d9a0467c6ce436e4f40e44e81005df6bdd9d2d
staging/lustre: use 64-bit timestamps for selftest

The wire protocol for the ping uses a 64-bit seconds/microseconds
pair, but this won't work when one side uses a 32-bit timeval
to look up the current time beyond 2038.

This changes the code to use ktime_get_real_ts64() to create
a timestamp that has the right format on all machines.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/ping_test.c