Whamcloud - gitweb
LU-18229 ldlm: BL_AST|CANCELLING lock still can be batched 89/56389/4
authorVitaly Fertman <c17818@cray.com>
Tue, 17 Sep 2024 18:07:18 +0000 (21:07 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jan 2025 18:40:54 +0000 (18:40 +0000)
commit1c9115f919109936576193a4d20baeccedb8be41
tree9d07dbeb4f640d84fee70daf14ee733d095b4439
parent225440c921cb45dc8652aca712bed501fa61b5f0
LU-18229 ldlm: BL_AST|CANCELLING lock still can be batched

The current code makes BL_AST locks which are also CANCELLING to be
cancelled individually (one lh per RPC), because they are already in
the l_bl_list. This still could be optimised.

A small cleanup in mdc_rename(): ldlm_cli_cancel_list() is already
called by mdc_prep_elc_req()->ldlm_prep_elc_req(), aligned with other
mdc_prep_elc_req() calls.

HPE-bug-id: LUS-12470
Fixes: b65374d9 ("LU-16285 ldlm: send the cancel RPC asap")
Signed-off-by: Vitaly Fertman <vitaly.fertman@hpe.com>
Change-Id: I218d38bc56a885845c48a3c982840b35b132f213
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56389
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c
lustre/mdc/mdc_reint.c
lustre/mdc/mdc_request.c