if (IS_ERR(th))
GOTO(out, rc = PTR_ERR(th));
- /* Create the remote update llog object synchronously, which
- * happens during inialization process see lod_sub_prep_llog(),
- * to make sure the update llog object is created before
- * corss-MDT writing updates into the llog object */
- if (dt_object_remote((*res)->lgh_obj))
+ /* Create update llog object synchronously, which
+ * happens during inialization process see
+ * lod_sub_prep_llog(), to make sure the update
+ * llog object is created before corss-MDT writing
+ * updates into the llog object */
+ if (ctxt->loc_flags & LLOG_CTXT_FLAG_NORMAL_FID)
th->th_sync = 1;
th->th_wait_submit = 1;