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-5357 lod: hold thandle during lod_trans_stop
[fs/lustre-release.git]
/
lustre
/
lod
/
lod_dev.c
diff --git
a/lustre/lod/lod_dev.c
b/lustre/lod/lod_dev.c
index
8606df9
..
e9cf6ce
100644
(file)
--- a/
lustre/lod/lod_dev.c
+++ b/
lustre/lod/lod_dev.c
@@
-591,9
+591,12
@@
static int lod_trans_stop(const struct lu_env *env, struct dt_device *dt,
int rc;
ENTRY;
int rc;
ENTRY;
+ thandle_get(th);
rc = dt_trans_stop(env, th->th_dev, th);
rc = dt_trans_stop(env, th->th_dev, th);
- if (likely(tu == NULL))
+ if (likely(tu == NULL)) {
+ thandle_put(th);
RETURN(rc);
RETURN(rc);
+ }
list_for_each_entry_safe(update, tmp,
&tu->tu_remote_update_list,
list_for_each_entry_safe(update, tmp,
&tu->tu_remote_update_list,
@@
-603,6
+606,7
@@
static int lod_trans_stop(const struct lu_env *env, struct dt_device *dt,
if (unlikely(rc2 != 0 && rc == 0))
rc = rc2;
}
if (unlikely(rc2 != 0 && rc == 0))
rc = rc2;
}
+ thandle_put(th);
RETURN(rc);
}
RETURN(rc);
}