Whamcloud - gitweb
LU-10413 ldlm: expose dirty age limit for flush-on-glimpse 13/32113/2
authorMikhail Pershin <mike.pershin@intel.com>
Mon, 23 Apr 2018 07:48:53 +0000 (10:48 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 6 May 2018 03:43:02 +0000 (03:43 +0000)
commit69727e45b4c0194f97c74df65b45fbf6a23235c4
tree4fd51c7a58bcb8ff2cc8279a5f31f536e36c3217
parent6f8d0e2905286cadda1564ace6c2e6b034f0dfd6
LU-10413 ldlm: expose dirty age limit for flush-on-glimpse

Glimpse request may cancel old lock and cause data flush.
That helps to cache stat results on client locally early.
The time limit was hardcoded to 10s and is exposed now
as ns_dirty_age_limit namespace value, it can be set/check
via /sys/fs/lustre/ldlm/namespaces/<namespace>/dirty_age_limit

Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: Ie5b74eeb1720d552ab3f667e38af3925855f40ac
Reviewed-on: https://review.whamcloud.com/32113
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_resource.c