From: Cliff White Date: Tue, 6 Apr 2010 06:40:15 +0000 (-0700) Subject: b=20373 Putting parent lock for rep-ack on create is wasteful X-Git-Tag: 1.10.0.41~22 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=398397bef91e8faac15e3a527fe2974f73c63bd6;ds=inline b=20373 Putting parent lock for rep-ack on create is wasteful Do not put locks if no create. i=robert.read i=tappro --- 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);