Whamcloud - gitweb
LU-9230 ldlm: speed up preparation for list of lock cancel 27/26327/31
authorYang Sheng <yang.sheng@intel.com>
Mon, 25 Sep 2017 13:01:02 +0000 (21:01 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 17 May 2018 02:30:39 +0000 (02:30 +0000)
commit651f2cdd2d8df1d4318f874993ab0706d16ce490
tree1b7107519c325c0ef669a66e61fc845c777f3bb0
parente8e6e3210e5eae78eefcc3f05e078a60c04dc80e
LU-9230 ldlm: speed up preparation for list of lock cancel

Keep the skipped locks in lru list will cause serious
contention for ns_lock. Since we have to travel them
every time in the ldlm_prepare_lru_list(). So we will
use a cursor to record position that last accessed
lock in lru list.

Change-Id: Ibda36a90e54076cb785a65910b34300639b3e140
Signed-off-by: Yang Sheng <yang.sheng@intel.com>
Signed-off-by: Sergey Cheremencev <c17829@cray.com>
Reviewed-on: https://review.whamcloud.com/26327
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Reviewed-by: Vitaly Fertman <c17818@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_dlm.h
lustre/include/lustre_dlm_flags.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_resource.c