X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_handler.c;h=f244e61ed93fa879a61d13442596bf1ed215b182;hp=569ecf66accf50d1686a9a909198f5e9239c5cec;hb=9849f6110680d6846e05e9787f1821b0f86b5461;hpb=acdaca8426a4ca21dab6f6b39365befb3a8f5ffc diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 569ecf6..f244e61 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -5046,7 +5046,9 @@ static int mdt_obd_connect(const struct lu_env *env, mdt_export_stats_init(obd, lexp, localdata); /* For phase I, sync for cross-ref operation. */ + spin_lock(&lexp->exp_lock); lexp->exp_keep_sync = 1; + spin_unlock(&lexp->exp_lock); } if (rc != 0) {