Whamcloud - gitweb
LU-9230 ldlm: speed up preparation for list of lock cancel 30/33130/3
authorYang Sheng <ys@whamcloud.com>
Mon, 10 Sep 2018 12:37:10 +0000 (20:37 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 5 Jan 2019 06:52:09 +0000 (06:52 +0000)
commit21f7f777172d68ce61734487e23cf237900f927d
tree29e6f494138fec18328af5255b70c5fe826bca8e
parent14236f475f7fecd35934289b966d2bfe16a0d163
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-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Vitaly Fertman <c17818@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: https://review.whamcloud.com/33130
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.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