From: Alex Zhuravlev Date: Fri, 6 May 2022 06:49:56 +0000 (+0300) Subject: LU-15830 mdt: mkdir to lookup target name X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=650f6e846b1b296e1c6c59e47725381810b7dd95;p=fs%2Flustre-release.git LU-15830 mdt: mkdir to lookup target name distributed mkdir should lookup the target name to avoid rollback as much as possible as the latter is very expensive due to llog re-initialization. Lustre-change: https://review.whamcloud.com/47226 Lustre-commit: 6bac96ed3b4a6bf514e4bd4c9c27c8ad89d627d1 Signed-off-by: Alex Zhuravlev Change-Id: If28760e0afb804dca11e1e7501e0a53ff9067ca1 Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao Signed-off-by: Mikhail Pershin Reviewed-on: https://review.whamcloud.com/47324 Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/mdt/mdt_reint.c b/lustre/mdt/mdt_reint.c index 285c98d..00b2120 100644 --- a/lustre/mdt/mdt_reint.c +++ b/lustre/mdt/mdt_reint.c @@ -627,6 +627,8 @@ static int mdt_create(struct mdt_thread_info *info) * not exist. */ info->mti_spec.sp_cr_lookup = 0; + if (mdt_object_remote(parent)) + info->mti_spec.sp_cr_lookup = 1; info->mti_spec.sp_feat = &dt_directory_features; rc = mdo_create(info->mti_env, mdt_object_child(parent), &rr->rr_name,