From 6fdcca8b2639ad9f6797cc7482da04c5e76a9e54 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Wed, 20 May 2015 04:38:24 +0800 Subject: [PATCH] LU-6970 llog: free thandle if declare failed in llog_osd_put_cat_list, the "thandle" should be cleaned up if the following "declare" operation failed. Change-Id: I0befba0068cb91fe685502f1e833c2fb6d6477bd Signed-off-by: Hongchao Zhang Reviewed-on: http://review.whamcloud.com/15951 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Niu Yawei Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin --- lustre/obdclass/llog_osd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/llog_osd.c b/lustre/obdclass/llog_osd.c index 4912db9..a8a53e4 100644 --- a/lustre/obdclass/llog_osd.c +++ b/lustre/obdclass/llog_osd.c @@ -1918,7 +1918,7 @@ int llog_osd_put_cat_list(const struct lu_env *env, struct dt_device *d, lgi->lgi_buf.lb_buf = idarray; rc = dt_declare_record_write(env, o, &lgi->lgi_buf, lgi->lgi_off, th); if (rc) - GOTO(out, rc); + GOTO(out_trans, rc); /* For update log, this happens during initialization, * see lod_sub_prep_llog(), and we need make sure catlog -- 1.8.3.1