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-10198 llog: keep llog handle alive until last reference
[fs/lustre-release.git]
/
lustre
/
obdclass
/
llog_ioctl.c
diff --git
a/lustre/obdclass/llog_ioctl.c
b/lustre/obdclass/llog_ioctl.c
index
1ee49ad
..
3db9ef5
100644
(file)
--- a/
lustre/obdclass/llog_ioctl.c
+++ b/
lustre/obdclass/llog_ioctl.c
@@
-167,7
+167,7
@@
static int llog_check_cb(const struct lu_env *env, struct llog_handle *handle,
RETURN(rc);
}
rc = llog_process(env, loghandle, llog_check_cb, NULL, NULL);
RETURN(rc);
}
rc = llog_process(env, loghandle, llog_check_cb, NULL, NULL);
- llog_handle_put(loghandle);
+ llog_handle_put(
env,
loghandle);
} else {
bool ok;
} else {
bool ok;
@@
-292,7
+292,7
@@
static int llog_remove_log(const struct lu_env *env, struct llog_handle *cat,
}
llog_cat_cleanup(env, cat, log, log->u.phd.phd_cookie.lgc_index);
out:
}
llog_cat_cleanup(env, cat, log, log->u.phd.phd_cookie.lgc_index);
out:
- llog_handle_put(log);
+ llog_handle_put(
env,
log);
RETURN(rc);
}
RETURN(rc);
}