Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f236353
)
b=4738
author
alex
<alex>
Wed, 10 Nov 2004 13:22:09 +0000
(13:22 +0000)
committer
alex
<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
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
4ef1f5a
..
bf29980
100644
(file)
--- 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,