Whamcloud - gitweb
LU-11912 tests: fix racing in force_new_seq_all
authorLi Dongyang <dongyangli@ddn.com>
Mon, 23 Oct 2023 11:49:55 +0000 (22:49 +1100)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Oct 2023 21:46:44 +0000 (21:46 +0000)
commite65102c7b41f0c6274eb937149170095ce2427e4
tree2cd18af663348962827f01e67d45d7c15f9bf008
parent0536622653ba592f4e8e1a05c7ea65b0a19d5168
LU-11912 tests: fix racing in force_new_seq_all

We run force_new_seq in parallel to reduce time spent
on consuming precreated objects.

However this could be racy when multiple MDTs are on
the same MDS, a task could finish for one MDT early
and reset the fail_loc to 0 on MDS while other tasks
are still working on other MDTs.

Replace OBD_FAIL_OSP_FORCE_NEW_SEQ with a new param
prealloc_force_new_seq for osp, so we can control
the seq rollover individually for each osp device.

Lustre-change: https://review.whamcloud.com/52801
Lustre-commit: TBD (from af6dcd597d7f5134de553349c05091e51e0f3dd6)

Change-Id: I52dbd550564ca628a8a85c42951694d58b2b93a9
Fixes: 656fc937cf ("LU-11912 tests: consume precreated objects in parallel")
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52802
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/obd_support.h
lustre/osp/lproc_osp.c
lustre/osp/osp_internal.h
lustre/tests/test-framework.sh