From c2b1dd7c630a588f132022086b83ff21c17fc699 Mon Sep 17 00:00:00 2001
From: alex <alex>
Date: Wed, 10 Nov 2004 13:22:09 +0000
Subject: [PATCH] b=4738

- mds_getattr_lock() should take UPDATE lock to protect directory
  from being modified during lookup procedure
---
 lustre/mds/handler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c
index 4ef1f5ad2c..bf29980680 100644
--- a/lustre/mds/handler.c
+++ b/lustre/mds/handler.c
@@ -1007,7 +1007,7 @@ static int mds_getattr_lock(struct ptlrpc_request *req, int offset,
                         rc = mds_get_parent_child_locked(obd, mds, &body->fid1,
                                                          parent_lockh, &dparent,
                                                          LCK_PR, 
-                                                         MDS_INODELOCK_LOOKUP,
+                                                         MDS_INODELOCK_UPDATE,
                                                          &update_mode, 
                                                          name, namesize,
                                                          child_lockh, &dchild, 
-- 
GitLab