aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
author\"Talpey, Thomas\ <Thomas.Talpey@netapp.com>2007-09-10 13:49:41 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:18:00 -0400
commit2cf7ff7a37cc149bd59c4f3bad432f686a4619c8 (patch)
tree9752290f4a0cb00d10a1fae24db8ef85b85b84e7 /fs/nfs/client.c
parentc3a57ed7471a17b07844d531534d970b84b69faf (diff)
NFS: support RDMA mounts
Adds hooks to the string-based NFS mount to support an "rdma" protocol option. Signed-off-by: Tom Talpey <tmt@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 6f6755529788..a532ee12740a 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -24,6 +24,7 @@
24#include <linux/sunrpc/stats.h> 24#include <linux/sunrpc/stats.h>
25#include <linux/sunrpc/metrics.h> 25#include <linux/sunrpc/metrics.h>
26#include <linux/sunrpc/xprtsock.h> 26#include <linux/sunrpc/xprtsock.h>
27#include <linux/sunrpc/xprtrdma.h>
27#include <linux/nfs_fs.h> 28#include <linux/nfs_fs.h>
28#include <linux/nfs_mount.h> 29#include <linux/nfs_mount.h>
29#include <linux/nfs4_mount.h> 30#include <linux/nfs4_mount.h>
@@ -342,6 +343,7 @@ static void nfs_init_timeout_values(struct rpc_timeout *to, int proto,
342 343
343 switch (proto) { 344 switch (proto) {
344 case XPRT_TRANSPORT_TCP: 345 case XPRT_TRANSPORT_TCP:
346 case XPRT_TRANSPORT_RDMA:
345 if (!to->to_initval) 347 if (!to->to_initval)
346 to->to_initval = 60 * HZ; 348 to->to_initval = 60 * HZ;
347 if (to->to_initval > NFS_MAX_TCP_TIMEOUT) 349 if (to->to_initval > NFS_MAX_TCP_TIMEOUT)