diff options
author | NeilBrown <neilb@suse.de> | 2006-10-04 05:15:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 10:55:15 -0400 |
commit | 7ed94296a660a61989b5d54f0c4bb804f30567d3 (patch) | |
tree | 9c598c7dd55181a8df91f9c10d04a5c3031198bc /fs/nfsd | |
parent | 1d02a030b01443f1cb81f22750113fe9a98109d9 (diff) |
[PATCH] knfsd: nfsd: lockdep annotation fix
nfsv2 needs the I_MUTEX_PARENT on the directory when creating a file too.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index 06cd0db0f32b..4e06810b6104 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c | |||
@@ -225,7 +225,7 @@ nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp, | |||
225 | nfserr = nfserr_exist; | 225 | nfserr = nfserr_exist; |
226 | if (isdotent(argp->name, argp->len)) | 226 | if (isdotent(argp->name, argp->len)) |
227 | goto done; | 227 | goto done; |
228 | fh_lock(dirfhp); | 228 | fh_lock_nested(dirfhp, I_MUTEX_PARENT); |
229 | dchild = lookup_one_len(argp->name, dirfhp->fh_dentry, argp->len); | 229 | dchild = lookup_one_len(argp->name, dirfhp->fh_dentry, argp->len); |
230 | if (IS_ERR(dchild)) { | 230 | if (IS_ERR(dchild)) { |
231 | nfserr = nfserrno(PTR_ERR(dchild)); | 231 | nfserr = nfserrno(PTR_ERR(dchild)); |