Whamcloud - gitweb
LU-6529 ldlm: improve proc interface of lock reclaim 23/16123/5
authorNiu Yawei <yawei.niu@intel.com>
Fri, 28 Aug 2015 07:52:32 +0000 (03:52 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 16 Sep 2015 01:06:25 +0000 (01:06 +0000)
commit33b55f223a42f20916bc417f7e5a21f68b59cd02
tree20904ea03ca698417eb171d48180493a6a7d137a
parent8f01f8b51d114b0d2d54a5ab7db3161782e52447
LU-6529 ldlm: improve proc interface of lock reclaim

Rename variables of ldlm_watermark_low & ldlm_watermark_high to
ldlm_reclaim_threshold & ldlm_lock_limit, and introduce two
additional variables of ldlm_reclaim_threshold_mb and
ldlm_lock_limit_mb for proc interface, so that we needn't to
convert the MB to locknr each time;

Adjust the proc name from watermark_low_mb & watermark_high_mb to
lock_reclaim_threshold_mb & lock_limit_mb;

Remove the misleading comment at the top of ldlm_reclaim.c, add more
comments to functions in ldlm_reclaim.c;

Export the total granted locks via proc for debug purpose;

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I161e088513ba2319cfdfe0d703512b4d9eeeebf1
Reviewed-on: http://review.whamcloud.com/16123
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/ldlm/ldlm_internal.h
lustre/ldlm/ldlm_reclaim.c
lustre/ldlm/ldlm_resource.c
lustre/tests/sanity.sh