Whamcloud - gitweb
b=4738
authoralex <alex>
Wed, 10 Nov 2004 13:22:09 +0000 (13:22 +0000)
committeralex <alex>
Wed, 10 Nov 2004 13:22:09 +0000 (13:22 +0000)
- mds_getattr_lock() should take UPDATE lock to protect directory
  from being modified during lookup procedure

lustre/mds/handler.c

index 4ef1f5a..bf29980 100644 (file)
@@ -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,