X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flod%2Flod_dev.c;h=e9cf6ce30d012e6999f123b6d9c696f7e24cb47c;hp=8606df9ac6642385cc9a0fe7b8b5d8d4c27b4ce3;hb=c236efcd5ed186c5813cc6b11d0b1b12d8ec0734;hpb=584f4c87a6f89b3808df03579bb977d11a22392d diff --git a/lustre/lod/lod_dev.c b/lustre/lod/lod_dev.c index 8606df9..e9cf6ce 100644 --- 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; + thandle_get(th); rc = dt_trans_stop(env, th->th_dev, th); - if (likely(tu == NULL)) + if (likely(tu == NULL)) { + thandle_put(th); RETURN(rc); + } 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; } + thandle_put(th); RETURN(rc); }