Whamcloud - gitweb
LU-11933 mdt: clear sp_cr_flags in migrate unpack 54/36154/3
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 15 Aug 2019 14:31:17 +0000 (22:31 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 27 Sep 2019 23:10:49 +0000 (23:10 +0000)
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 <lai.siyao@whamcloud.com>
Change-Id: Ib3d5d39a4a072621c8da8b6ef7869cb4d8178aac
Reviewed-on: https://review.whamcloud.com/36154
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lib.c

index d8fd04c..8e49bed 100644 (file)
@@ -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)