Whamcloud - gitweb
LU-15145 hsm: unlock the restore layout lock for a cancel
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Fri, 22 Oct 2021 18:18:29 +0000 (20:18 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 25 Apr 2022 23:55:44 +0000 (23:55 +0000)
commitacc6f3762417ef0bb7324e48f85bdf2a46bdbf39
tree9132578351a9cbce5cbcbb3584e54f6ebdf46f58
parent632fb53f450e65a2fe6285beaaeeccf3a9a532a9
LU-15145 hsm: unlock the restore layout lock for a cancel

The HSM restore EX layout lock is not unlock by a HSM cancel action
or by "hsm_control=purge" parameter.

This patch call cdt_restore_handle_del() in mdt_cancel_all_cb() and
mdt_agent_record_update_cb() for restore action (when updating action
status to ARS_CANCELED).
The test "sanity-hsm test_103a" checks the "purge actions" with
blocking restore.

Lustre-change: https://review.whamcloud.com/45341
Lustre-commit: 6d4019281b392bcb6993d1cfca3d47d7fa5f7c56

Test-Parameters: testlist=sanity-hsm,sanity-hsm
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Id891e06aacd2a2c5950048a2d2a5d1398eedfdd7
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46932
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_hsm_cdt_actions.c
lustre/mdt/mdt_hsm_cdt_agent.c
lustre/mdt/mdt_internal.h
lustre/tests/sanity-hsm.sh