Whamcloud - gitweb
LU-12931 ldlm: use proper units for timeouts 65/38365/6
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 25 Apr 2020 09:19:04 +0000 (03:19 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:22:26 +0000 (08:22 +0000)
commit3108bbb0b8485484bc1ac8ba5bac4276fc11c7c3
tree31c929960890602b74d447ed0f2964c51819baf8
parentbc7f8cfe0fc6a5977d452c4637e340cd63081bdc
LU-12931 ldlm: use proper units for timeouts

Use timeout_t for ns_ctime_age_limit since this is a relative time
and not an absolute time.

Use ktime_t for ns_dirty_age_limit internally, even though the user
interface is in seconds, since this is frequenty used together with
other ktime_t values in the kernel.

Fixes: e920be681451 ("LU-9019 ldlm: migrate the rest of the code to 64 bit time")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Idb5ece834e56a95cd781cb871b1b7c20bf3ebbe5
Reviewed-on: https://review.whamcloud.com/38365
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_resource.c
lustre/llite/namei.c