Whamcloud - gitweb
LU-8367 osp: wait for precreate on reformatted OST 51/49151/6
authorLi Dongyang <dongyangli@ddn.com>
Mon, 14 Nov 2022 13:28:37 +0000 (00:28 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 3 Jan 2023 21:34:32 +0000 (21:34 +0000)
commite06b2ed956f45feffa3adc7e2e7399ab737b37be
tree1c10c298c1ece43f4fe73d3ec1dcd304b44d5de5
parent0dd0a540e4bbeab04eefd409ba9bb3c37624d96d
LU-8367 osp: wait for precreate on reformatted OST

We should wait for precreate rpc to finish when we see a just
reformatted/replaced OST, otherwise the client could try
to access the object on OST before it's created.

Do not use sync_trans when recreating the objects on the
reformatted/replaced OST.

Fix detecting reformatted OST for FID_SEQ_NORMAL, for such
seqs the oid will be initialized as LUSTRE_FID_INIT_OID,
which is 1.

Change-Id: I4aebb9d573aa352dd7897e5f1129dc2117a084bb
Fixes: 63e17799a3 ("LU-8367 osp: enable replay for precreation request")
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49151
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/ofd_dev.c
lustre/osp/osp_precreate.c
lustre/tests/conf-sanity.sh