Whamcloud - gitweb
LU-16285 ldlm: send the cancel RPC asap
authorYang Sheng <ys@whamcloud.com>
Sat, 14 Jan 2023 17:56:14 +0000 (01:56 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 30 Jan 2023 23:45:21 +0000 (23:45 +0000)
commitb88c6fd99499b2f9045bf877d1b20c6d995785a7
treeda69fa5fdff75599b864d367025577336e45a94d
parent6979d152e9dc384b471a4e01fcef7ca6b674a95b
LU-16285 ldlm: send the cancel RPC asap

This patch try to send cancel RPC ASAP when bl_ast
received from server. The exist problem is that
lock could be added in regular queue before bl_ast
arrived since other reason. It will prevent lock
canceling in timely manner. The other problem is
that we collect many locks in one RPC to save
the network traffic. But this process could take
a long time when dirty pages flushing.

 - The lock canceling will be processed even lock has
   been added to bl queue while bl_ast arrived. Unless
   the cancel RPC has been sent.
 - Send the cancel RPC immediatly for bl_ast lock. Don't
   try to add more locks in such case.

Lustre-change: https://review.whamcloud.com/49527
Lustre-commit: b65374d96b2027213f253e128d3e5b3943ff2240

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: Ie5efff3f1ed4e46448371185a0c08968233e7644
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49651
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lockd.c
lustre/ldlm/ldlm_request.c