]> git.baikalelectronics.ru Git - kernel.git/commit
staging/lustre: use 64-bit timestamps for mdc
authorArnd Bergmann <arnd@arndb.de>
Sun, 27 Sep 2015 20:45:27 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:06:16 +0000 (04:06 +0200)
commitde921e91c8c6a7ee90644c4e6ca642a7efbf3d79
tree218e8f852a842511311060d9e46fffa51a2a9d71
parenta38d2acad86d2cbcdc3b2d4c976917ffb0425015
staging/lustre: use 64-bit timestamps for mdc

These three are timestamps that are sent over the wire in mdc_lib
and the obd logging 64-bit values, but are generated using the 32-bit
get_seconds() function, which will eventually overflow.

Changing them to use 64-bit ktime_get_real_seconds() solves the problem.

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/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/mdc/mdc_request.c
drivers/staging/lustre/lustre/obdclass/llog.c