Whamcloud - gitweb
LU-18498 hsm: don't lock llog at cdt 97/57197/8
authorAlexander Boyko <alexander.boyko@hpe.com>
Mon, 4 Nov 2024 06:59:30 +0000 (07:59 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jan 2025 19:30:50 +0000 (19:30 +0000)
commite4869bc72c4b5ba59a5dc5e47b7c1a638eae394e
tree8acf84a563f0ff8db1db3cf41f26555fda116ec4
parent7dce71b0daf786dd212457250a27283dc61b7222
LU-18498 hsm: don't lock llog at cdt

llog does not need outside locking. Only HSM data
should be protected inside callbacks. Howevere most of
it only read data. cdt_last_cookie is converted to
atomic64_t. Also fix adds synchronization between
hsm_cancel_all_actions() and mdt_coordinator(), cancels
wait ongoing work.
To be safe between llog processing vs record modification,
dt_write_lock() is added to a modification llog_osd part.

Test-Parameters: testlist=sanity-hsm,sanity-pcc
HPE-bug-id: LUS-12557
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: I67eb98dcd57d4db6916c80c17b566577e7efddf0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57197
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: Sergey Cheremencev <scherementsev@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_client.c
lustre/mdt/mdt_internal.h
lustre/obdclass/llog_osd.c