diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2015-11-19 14:30:26 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-11-23 21:57:44 -0500 |
commit | 91ab4b4d16e6649fbbf65f303c0c4e20ed680bd1 (patch) | |
tree | 14ddd8ebe52a5edbaf0a8b4db8fc73a5b368de78 /include/linux/nfs_xdr.h | |
parent | f54423a1f8fb0da4226a982618d2c703e413d4d6 (diff) | |
download | linux-91ab4b4d16e6649fbbf65f303c0c4e20ed680bd1.tar.gz linux-91ab4b4d16e6649fbbf65f303c0c4e20ed680bd1.tar.bz2 linux-91ab4b4d16e6649fbbf65f303c0c4e20ed680bd1.zip |
nfs: use sliding delay when LAYOUTGET gets NFS4ERR_DELAY
When LAYOUTGET gets NFS4ERR_DELAY, we currently will wait 15s before
retrying the call. That is a _very_ long time, so add a timeout value to
struct nfs4_layoutget and pass nfs4_async_handle_error a pointer to it.
This allows the RPC engine to use a sliding delay window, instead of a
15s delay.
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 570d630f98ae..11bbae44f4cb 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -251,6 +251,7 @@ struct nfs4_layoutget { struct nfs4_layoutget_res res; struct rpc_cred *cred; gfp_t gfp_flags; + long timeout; }; struct nfs4_getdeviceinfo_args { |