Whamcloud - gitweb
LU-6698 kernel: kernel update RHEL 6.6 [2.6.32-504.23.4.el6]
[fs/lustre-release.git] / lustre / osp / osp_trans.c
index 6d0067a..c1d1950 100644 (file)
@@ -545,11 +545,12 @@ int osp_trans_update_request_create(struct thandle *th)
                return PTR_ERR(our);
        }
 
-       if (dt2osp_dev(th->th_dev)->opd_connect_mdt)
-               our->our_flags = UPDATE_FL_SYNC;
-
        oth->ot_our = our;
        our->our_th = oth;
+
+       if (oth->ot_super.th_sync)
+               oth->ot_our->our_flags |= UPDATE_FL_SYNC;
+
        return 0;
 }