Whamcloud - gitweb
LU-16285 ldlm: send the cancel RPC asap 27/49527/8
authorYang Sheng <ys@whamcloud.com>
Sat, 14 Jan 2023 17:56:14 +0000 (01:56 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Jan 2023 00:35:13 +0000 (00:35 +0000)
commitb65374d96b2027213f253e128d3e5b3943ff2240
tree3826d9d3a317be3909e617b7c3b45c0cf4a3ec2c
parentf147655c33ea61450105b602c82da900fd1417b5
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.

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: Ie5efff3f1ed4e46448371185a0c08968233e7644
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49527
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@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