Whamcloud - gitweb
LU-3536 lod: cancel update log after all committed
[fs/lustre-release.git] / lustre / obdclass / llog.c
index 9346f18..4e3ae10 100644 (file)
@@ -791,6 +791,7 @@ int llog_open_create(const struct lu_env *env, struct llog_ctxt *ctxt,
        if (IS_ERR(th))
                GOTO(out, rc = PTR_ERR(th));
 
+       th->th_wait_submit = 1;
        rc = llog_declare_create(env, *res, th);
        if (rc == 0) {
                rc = dt_trans_start_local(env, d, th);
@@ -863,6 +864,7 @@ int llog_write(const struct lu_env *env, struct llog_handle *loghandle,
        if (rc)
                GOTO(out_trans, rc);
 
+       th->th_wait_submit = 1;
        rc = dt_trans_start_local(env, dt, th);
        if (rc)
                GOTO(out_trans, rc);