Whamcloud - gitweb
LU-8367 osp: wait for precreate on reformatted OST
authorLi Dongyang <dongyangli@ddn.com>
Mon, 14 Nov 2022 13:28:37 +0000 (00:28 +1100)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 25 Apr 2023 03:37:39 +0000 (03:37 +0000)
commitd841f5f1bcace98117879e013f42d28188c1ee5b
treed4f6e808be0b34deafc599078238b2f706ac7cfc
parent0b90f4a9bcf0034308da56d6d1675e34c5ec669c
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>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50410
lustre/ofd/ofd_dev.c
lustre/osp/osp_precreate.c
lustre/tests/conf-sanity.sh