X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fldlm%2Fldlm_lib.c;h=0eb34d786049031a396f8aabda0b7dee98c86c97;hp=0c878dc84f0100f1949c724185bed765981e67da;hb=9849f6110680d6846e05e9787f1821b0f86b5461;hpb=acdaca8426a4ca21dab6f6b39365befb3a8f5ffc diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 0c878dc..0eb34d7 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -1068,8 +1068,10 @@ dont_check_exports: * OBD_CONNECT_MNE_SWAB flag around forever, just so long as we need * interop with unpatched 2.2 clients. For newer clients, servers * will never do MNE swabbing, let the client handle that. LU-1644 */ + spin_lock(&export->exp_lock); export->exp_need_mne_swab = !ptlrpc_req_need_swab(req) && !(data->ocd_connect_flags & OBD_CONNECT_MNE_SWAB); + spin_unlock(&export->exp_lock); #endif LASSERT(target->u.obt.obt_magic == OBT_MAGIC);