Whamcloud - gitweb
LU-16692 osp: osp_fid_diff vs rollover_new_seq race
authorLi Dongyang <dongyangli@ddn.com>
Mon, 19 Feb 2024 02:27:22 +0000 (13:27 +1100)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 15 Apr 2024 09:54:31 +0000 (09:54 +0000)
commit483d6f2d5298e4b8a5ff9fb507947ff88ec7b21f
tree972448b7453004b9da3bb991ddc47a99bf7816e5
parent198d29c2ae9f3b56f6ac0223686cb47578ac5d69
LU-16692 osp: osp_fid_diff vs rollover_new_seq race

osp_fid_diff/osp_objs_precreated is accessing the
last_created_fid and pre_used_fid without opd_pre_lock,
and this could race with osp_precreate_rollover_new_seq()
when updating them to new fids.

Lustre-change: https://review.whamcloud.com/54087
Lustre-commit: bc256c25631960e1386f3359bb6c85cfe6481fb7

Change-Id: I3a61c99570b5532776ddc43247c1513b8c89fb32
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54703
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osp/osp_internal.h
lustre/osp/osp_precreate.c