From 35b1076aef8fbb2840de2b831765a20ec937d034 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. Signed-off-by: Alex Zhuravlev Change-Id: Ia1cbfaae9b28e40fd68fa125d748ec0b5319f512 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54302 Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger Reviewed-by: Li Dongyang 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 5cb2dd2..07f6bfc 100644 --- a/lustre/lod/lod_object.c +++ b/lustre/lod/lod_object.c @@ -1193,7 +1193,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