X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmdt%2Fmdt_open.c;h=af84bbad0b1aa360234254782c1132ee45ec97ca;hp=e48fb7eb061c087ebdb0c0ea1bf1dfa89e52604f;hb=398397bef91e8faac15e3a527fe2974f73c63bd6;hpb=79d4826a129a1f29585d50ee83e624aac7ea01a6 diff --git a/lustre/mdt/mdt_open.c b/lustre/mdt/mdt_open.c index e48fb7e..af84bba 100644 --- a/lustre/mdt/mdt_open.c +++ b/lustre/mdt/mdt_open.c @@ -1419,7 +1419,7 @@ int mdt_reint_open(struct mdt_thread_info *info, struct mdt_lock_handle *lhc) out_child: mdt_object_put(info->mti_env, child); out_parent: - mdt_object_unlock_put(info, parent, lh, result); + mdt_object_unlock_put(info, parent, lh, result || !created); out: if (result && result != -EREMOTE) lustre_msg_set_transno(req->rq_repmsg, 0);