From: Alex Zhuravlev Date: Fri, 6 May 2022 06:49:56 +0000 (+0300) Subject: LU-15830 mdt: mkdir to lookup target name X-Git-Tag: 2.15.0-RC5~12 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=13760fd8ba42c2589777c933c3a0b442c1eb083a;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. 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 --- 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,