Skip to content
Snippets Groups Projects
Commit 0640aad3 authored by alex's avatar alex
Browse files

- mdt_obj_create() should close transaction in success case

parent c130ceac
No related branches found
No related tags found
No related merge requests found
...@@ -1461,14 +1461,14 @@ repeat: ...@@ -1461,14 +1461,14 @@ repeat:
} }
cleanup: cleanup:
if (cleanup_phase == 1) /* transaction */ switch (cleanup_phase) {
rc = mds_finish_transno(mds, parent_inode, handle, req, rc, 0); case 2: /* valid lockh */
if (cleanup_phase == 2) { /* valid lockh */
if (rc == 0) if (rc == 0)
ptlrpc_save_lock(req, &lockh, LCK_EX); ptlrpc_save_lock(req, &lockh, LCK_EX);
else else
ldlm_lock_decref(&lockh, LCK_EX); ldlm_lock_decref(&lockh, LCK_EX);
case 1: /* transaction */
rc = mds_finish_transno(mds, parent_inode, handle, req, rc, 0);
} }
l_dput(new); l_dput(new);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment