Whamcloud - gitweb
LU-15145 hsm: unlock the restore layout lock for a cancel 41/45341/5
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Fri, 22 Oct 2021 18:18:29 +0000 (20:18 +0200)
committerOleg Drokin <green@whamcloud.com>
Tue, 18 Jan 2022 09:08:54 +0000 (09:08 +0000)
commit6d4019281b392bcb6993d1cfca3d47d7fa5f7c56
tree5343eb94c0496d302b0985ba3556a9b3a1a489c9
parent321fe9fa12d244bb70a6662d3d4d9a6c1709fe3e
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.

Test-Parameters: testlist=sanity-hsm,sanity-hsm
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: Id891e06aacd2a2c5950048a2d2a5d1398eedfdd7
Reviewed-on: https://review.whamcloud.com/45341
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@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