From f430463a0efecb92f4a42ae7033e2ba589370d58 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Wed, 6 Mar 2024 21:00:51 +0300 Subject: [PATCH] LU-17448 lod: don't skip uninited components don't skip uninitialized component during declaration as we need to declare potential records to llogs if the component is created in this transaction later. Lustre-change: https://review.whamcloud.com/54302 Lustre-commit: 35b1076aef8fbb2840de2b831765a20ec937d034 Signed-off-by: Alex Zhuravlev Change-Id: Ia1cbfaae9b28e40fd68fa125d748ec0b5319f512 Reviewed-by: Andreas Dilger Reviewed-by: Li Dongyang Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54655 Tested-by: jenkins Tested-by: Maloo --- lustre/lod/lod_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lod/lod_object.c b/lustre/lod/lod_object.c index 8e58339..45f4bd4 100644 --- a/lustre/lod/lod_object.c +++ b/lustre/lod/lod_object.c @@ -1191,7 +1191,7 @@ int lod_obj_for_each_stripe(const struct lu_env *env, struct lod_object *lo, /* has stripe but not inited yet, this component has been * declared to be created, but hasn't created yet. */ - if (!lod_comp_inited(lod_comp)) + if (!lod_comp_inited(lod_comp) && !data->locd_declare) continue; if (data->locd_comp_skip_cb && -- 1.8.3.1