Whamcloud - gitweb
LU-11912 tests: fix racing in force_new_seq_all 01/52801/2
authorLi Dongyang <dongyangli@ddn.com>
Mon, 23 Oct 2023 11:49:55 +0000 (22:49 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Nov 2023 04:03:21 +0000 (04:03 +0000)
commit3f8318e983f1925c7b9f367c270593233b956dff
tree21fae62e7592b11a036a16f7662df401a02279ad
parent7b68455b64a585a439be1126b97716d8711b6c4e
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>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52801
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/osp/lproc_osp.c
lustre/osp/osp_internal.h
lustre/tests/test-framework.sh