Whamcloud - gitweb
LU-15132 mdc: Use early cancels for hsm requests 81/47181/5
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Mon, 2 May 2022 12:27:17 +0000 (14:27 +0200)
committerOleg Drokin <green@whamcloud.com>
Mon, 6 Jun 2022 06:27:21 +0000 (06:27 +0000)
commit60d2a4b0efa4a944b558bd9b63b6334f7e70419b
tree0f26ebf366c95f4a54885544c51ec61f819d7c00
parente642e75cde0248eee30ca94aaeb81653db7f8d03
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.

Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: I30a57b4855c28eef9c55a9645d3b6c491f962b13
Reviewed-on: https://review.whamcloud.com/47181
Reviewed-by: Nikitas Angelinas <nikitas.angelinas@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdc/mdc_request.c