From a836ef5eed5821930ec2e67eaa63e2398805250c Mon Sep 17 00:00:00 2001 From: yury Date: Wed, 26 Jan 2005 09:57:45 +0000 Subject: [PATCH 1/1] - removed redundant check and lock release. If name is not passed to mds_id2locked_dentry() parent lock is not taken, so we do not need to release it. --- lustre/mds/handler.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 6cf5d7b..60438d4 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1069,10 +1069,6 @@ static int mds_getattr_lock(struct ptlrpc_request *req, int offset, GOTO(cleanup, rc = PTR_ERR(dchild)); } memcpy(child_lockh, parent_lockh, sizeof(parent_lockh[0])); -#ifdef S_PDIROPS - if (parent_lockh[1].cookie) - ldlm_lock_decref(parent_lockh + 1, update_mode); -#endif } } else { struct ldlm_lock *granted_lock; -- 1.8.3.1