Whamcloud - gitweb
LU-11912 tests: fix racing in force_new_seq_all 01/52801/1
authorLi Dongyang <dongyangli@ddn.com>
Mon, 23 Oct 2023 11:49:55 +0000 (22:49 +1100)
committerLi Dongyang <dongyangli@ddn.com>
Mon, 23 Oct 2023 12:10:38 +0000 (23:10 +1100)
commitaf6dcd597d7f5134de553349c05091e51e0f3dd6
treea17082708a1c34f58b1c37295b267a9ca2775ec2
parenta9411a9856a0a1539ea2c8dc9c7eb1bd8fa2c409
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.

Change-Id: I52dbd550564ca628a8a85c42951694d58b2b93a9
Fixes: 656fc937cf ("LU-11912 tests: consume precreated objects in parallel")
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
lustre/include/obd_support.h
lustre/osp/lproc_osp.c
lustre/osp/osp_internal.h
lustre/tests/test-framework.sh