Whamcloud - gitweb
LU-11518 ldlm: cancel LRU improvement 07/41007/3
authorVitaly Fertman <c17818@cray.com>
Wed, 16 Dec 2020 16:54:10 +0000 (11:54 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 13 Sep 2021 19:07:02 +0000 (19:07 +0000)
commit8a5131183a2b353cb475ea5826623fe59013a5ac
treef1b80cd4474274e898042b017bfbf2e040496238
parent1a88d6501268709f44d20e322d76c57266b2c112
LU-11518 ldlm: cancel LRU improvement

Add @batch parameter to cancel LRU, which means if at least 1 lock is
cancelled, try to cancel at least a batch locks. This functionality
will be used in later patches.

Limit the LRU cancel by 1 thread only, however, not for those which
have the @max limit given (ELC), as LRU may be left not cleaned up
in full.

Lustre-change: https://review.whamcloud.com/39561
Lustre-commit: 3d4b5dacb3053f39d79d59860a903a19e76b9318

Signed-off-by: Vitaly Fertman <c17818@cray.com>
Change-Id: Ide21c4a2b2209b8a721249466ea1e651c8532c8a
HPE-bug-id: LUS-8678
Reviewed-on: https://es-gerrit.dev.cray.com/157067
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Tested-by: Alexander Lezhoev <c17454@cray.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41007
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_resource.c