From: NeilBrown Date: Fri, 8 Jul 2005 00:59:12 +0000 (-0700) Subject: [PATCH] nfsd4: lookup_one_len takes i_sem X-Git-Tag: v2.6.13-rc3~133 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cdc5524e8a257b1c91dd8e4cdfbab979f4e17a60;p=linux-2.6-omap-h63xx.git [PATCH] nfsd4: lookup_one_len takes i_sem Oops, this lookup_one_len needs the i_sem. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index bb40083b6b7..53abb333732 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;