From 0640aad351630682c89c13dc2018c66fd399c024 Mon Sep 17 00:00:00 2001 From: alex <alex> Date: Mon, 28 Jun 2004 08:48:26 +0000 Subject: [PATCH] - mdt_obj_create() should close transaction in success case --- lustre/mds/handler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 3875d7b321..9479266770 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1461,14 +1461,14 @@ repeat: } cleanup: - if (cleanup_phase == 1) /* transaction */ - rc = mds_finish_transno(mds, parent_inode, handle, req, rc, 0); - - if (cleanup_phase == 2) { /* valid lockh */ + switch (cleanup_phase) { + case 2: /* valid lockh */ if (rc == 0) ptlrpc_save_lock(req, &lockh, LCK_EX); else ldlm_lock_decref(&lockh, LCK_EX); + case 1: /* transaction */ + rc = mds_finish_transno(mds, parent_inode, handle, req, rc, 0); } l_dput(new); -- GitLab