Whamcloud - gitweb
LU-12769 recovery: use monotonic timer 37/36937/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 23 Sep 2019 08:26:19 +0000 (11:26 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Jan 2020 23:41:42 +0000 (23:41 +0000)
commitcf4cdefec8145b2b7a2eb4c2de4e1e08ebc862b3
tree2ac3e7a263941b7dc8637a7560b8112322f64b0a
parentbc27e0f6efbdbd256c6459d15391754ce1b36d32
LU-12769 recovery: use monotonic timer

instead of real one. also use absolute values for timer.

One of the reasons for the move from jiffies based timer
to a hrtimer timer was to avoid the issue of time drift.
It was discovered due to test failures with recovery on
VMs that the high resolution wall clock can drift as well.
Moving to the monotonic clock for the hrtimer avoids this
drift completely and it is safe to use since the recovery
timestamp is not shared between nodes.

Lustre-change: https://review.whamcloud.com/36274
Lustre-commit: 06408a4ef381121fa58783026a0cf0a6b0fa479c

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I8b75121934c229dec8df7be0a4e69c1cda940d3f
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36937
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_lib.c