NFS: Add softreval behaviour to nfs_lookup_revalidate()
If the server is unavaliable, we want to allow the revalidating lookup to time out, and to default to validating the cached dentry if the 'softreval' mount option is set. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:

committed by
Anna Schumaker

parent
fe1e8dbec1
commit
f7b37b8b13
@@ -442,12 +442,11 @@ int nfs4_submount(struct fs_context *fc, struct nfs_server *server)
|
||||
struct dentry *dentry = ctx->clone_data.dentry;
|
||||
struct dentry *parent = dget_parent(dentry);
|
||||
struct inode *dir = d_inode(parent);
|
||||
const struct qstr *name = &dentry->d_name;
|
||||
struct rpc_clnt *client;
|
||||
int ret;
|
||||
|
||||
/* Look it up again to get its attributes and sec flavor */
|
||||
client = nfs4_proc_lookup_mountpoint(dir, name, ctx->mntfh,
|
||||
client = nfs4_proc_lookup_mountpoint(dir, dentry, ctx->mntfh,
|
||||
ctx->clone_data.fattr);
|
||||
dput(parent);
|
||||
if (IS_ERR(client))
|
||||
|
Reference in New Issue
Block a user