Whamcloud - gitweb
LU-15132 mdc: Use early cancels for hsm requests
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Mon, 2 May 2022 12:27:17 +0000 (14:27 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 14 Oct 2022 20:00:57 +0000 (20:00 +0000)
commitb2b12fdf408de54321fdae8db57d52948df39540
treefbadbaf5751297578db9b67926acccff4b29bf61
parent99a938f18817fea0c1df3a3f8ea5ced07afb1dba
LU-15132 mdc: Use early cancels for hsm requests

HSM RELEASE and RESTORE requests take EX layout lock on the MDT side.
So the client can use early cancel for its local lock on the resource
to limit the contention (mdt side).

This patch does not pack ldlm request inside the hsm request because
the field (RMF_DLM_REQ) does not exist in the request. Adding this
field inside the request would break compatibility with _old_ servers.

Lustre-change: https://review.whamcloud.com/47181
Lustre-commit: 60d2a4b0efa4a944b558bd9b63b6334f7e70419b

Signed-off-by: Xing Huang <hxing@ddn.com>
Change-Id: I30a57b4855c28eef9c55a9645d3b6c491f962b13
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48652
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdc/mdc_request.c