Skip to content

Commit

Permalink
[PATCH] nfsd4: lookup_one_len takes i_sem
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jul 8, 2005
1 parent a6ccbbb commit cdc5524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nfsd/nfs4recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cdc5524

Please sign in to comment.