Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-3536 lod: cancel update log after all committed
[fs/lustre-release.git]
/
lustre
/
obdclass
/
llog.c
diff --git
a/lustre/obdclass/llog.c
b/lustre/obdclass/llog.c
index
9346f18
..
4e3ae10
100644
(file)
--- a/
lustre/obdclass/llog.c
+++ b/
lustre/obdclass/llog.c
@@
-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));
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);
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);
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);
rc = dt_trans_start_local(env, dt, th);
if (rc)
GOTO(out_trans, rc);