From d4da3b55a8303d937828e74341b3ab5c4dfd52b2 Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Thu, 15 Aug 2019 22:31:17 +0800 Subject: [PATCH] LU-11933 mdt: clear sp_cr_flags in migrate unpack mdt_thread_info.mti_spec is not cleared after operation handling, so mdt_migrate_unpack() should clear it in case the old values are used. Signed-off-by: Lai Siyao Change-Id: Ib3d5d39a4a072621c8da8b6ef7869cb4d8178aac Reviewed-on: https://review.whamcloud.com/36154 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Li Xi Reviewed-by: Oleg Drokin --- lustre/mdt/mdt_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/mdt/mdt_lib.c b/lustre/mdt/mdt_lib.c index d8fd04c..8e49bed 100644 --- a/lustre/mdt/mdt_lib.c +++ b/lustre/mdt/mdt_lib.c @@ -1509,6 +1509,7 @@ static int mdt_migrate_unpack(struct mdt_thread_info *info) /* rename_tgt contains the mode already */ attr->la_mode = rec->rn_mode; attr->la_valid = LA_UID | LA_GID | LA_CTIME | LA_MTIME | LA_MODE; + spec->sp_cr_flags = 0; rc = mdt_name_unpack(pill, &RMF_NAME, &rr->rr_name, 0); if (rc < 0) -- 1.8.3.1