aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <trondmy@gmail.com>2019-06-25 20:41:16 (GMT)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-06-28 15:48:52 (GMT)
commit68f461593f76bd5f17e87cdd0bea28f4278c7268 (patch)
treeda2cc74840d30a4afcbac3cd720b820aadd6915f /fs
parent7e3d3620974b743b91b1f9d0660061b1de20174c (diff)
downloadkernel_replicant_linux-68f461593f76bd5f17e87cdd0bea28f4278c7268.zip
kernel_replicant_linux-68f461593f76bd5f17e87cdd0bea28f4278c7268.tar.gz
kernel_replicant_linux-68f461593f76bd5f17e87cdd0bea28f4278c7268.tar.bz2
NFS/flexfiles: Use the correct TCP timeout for flexfiles I/O
Fix a typo where we're confusing the default TCP retrans value (NFS_DEF_TCP_RETRANS) for the default TCP timeout value. Fixes: 15d03055cf39f ("pNFS/flexfiles: Set reasonable default ...") Cc: stable@vger.kernel.org # 4.8+ Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/flexfilelayout/flexfilelayoutdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c
index a809989..19f856f 100644
--- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c
+++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c
@@ -18,7 +18,7 @@
#define NFSDBG_FACILITY NFSDBG_PNFS_LD
-static unsigned int dataserver_timeo = NFS_DEF_TCP_RETRANS;
+static unsigned int dataserver_timeo = NFS_DEF_TCP_TIMEO;
static unsigned int dataserver_retrans;
static bool ff_layout_has_available_ds(struct pnfs_layout_segment *lseg);