diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-07-08 02:59:12 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-08 03:24:07 +0200 |
commit | cdc5524e8a257b1c91dd8e4cdfbab979f4e17a60 (patch) | |
tree | 8db1b2c1ac28d1525f7e953e1ac5de8616da4663 /fs/nfsd/nfs4recover.c | |
parent | [PATCH] nfsd4: fix sync'ing of recovery directory (diff) | |
download | linux-cdc5524e8a257b1c91dd8e4cdfbab979f4e17a60.tar.xz linux-cdc5524e8a257b1c91dd8e4cdfbab979f4e17a60.zip |
[PATCH] nfsd4: lookup_one_len takes i_sem
Oops, this lookup_one_len needs the i_sem.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index bb40083b6b7d..53abb333732e 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c @@ -289,7 +289,9 @@ nfsd4_unlink_clid_dir(char *name, int namlen) dprintk("NFSD: nfsd4_unlink_clid_dir. name %.*s\n", namlen, name); + down(&rec_dir.dentry->d_inode->i_sem); dentry = lookup_one_len(name, rec_dir.dentry, namlen); + up(&rec_dir.dentry->d_inode->i_sem); if (IS_ERR(dentry)) { status = PTR_ERR(dentry); return status; |