From 6bac96ed3b4a6bf514e4bd4c9c27c8ad89d627d1 Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Fri, 6 May 2022 09:49:56 +0300 Subject: [PATCH] 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. Signed-off-by: Alex Zhuravlev Change-Id: If28760e0afb804dca11e1e7501e0a53ff9067ca1 Reviewed-on: https://review.whamcloud.com/47226 Tested-by: jenkins Reviewed-by: Andreas Dilger Reviewed-by: Lai Siyao Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/mdt/mdt_reint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/mdt/mdt_reint.c b/lustre/mdt/mdt_reint.c index ab3cdd4..c800ca6 100644 --- a/lustre/mdt/mdt_reint.c +++ b/lustre/mdt/mdt_reint.c @@ -626,6 +626,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, -- 1.8.3.1