aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/nfsd/nfs4callback.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 89f23eddb8f6..24e8d78f8dde 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -48,6 +48,7 @@
48#include <linux/nfsd/state.h> 48#include <linux/nfsd/state.h>
49#include <linux/sunrpc/sched.h> 49#include <linux/sunrpc/sched.h>
50#include <linux/nfs4.h> 50#include <linux/nfs4.h>
51#include <linux/sunrpc/xprtsock.h>
51 52
52#define NFSDDBG_FACILITY NFSDDBG_PROC 53#define NFSDDBG_FACILITY NFSDDBG_PROC
53 54
@@ -483,7 +484,7 @@ int setup_callback_client(struct nfs4_client *clp)
483 .to_retries = 0, 484 .to_retries = 0,
484 }; 485 };
485 struct rpc_create_args args = { 486 struct rpc_create_args args = {
486 .protocol = IPPROTO_TCP, 487 .protocol = XPRT_TRANSPORT_TCP,
487 .address = (struct sockaddr *) &cb->cb_addr, 488 .address = (struct sockaddr *) &cb->cb_addr,
488 .addrsize = cb->cb_addrlen, 489 .addrsize = cb->cb_addrlen,
489 .timeout = &timeparms, 490 .timeout = &timeparms,
@@ -498,7 +499,10 @@ int setup_callback_client(struct nfs4_client *clp)
498 499
499 if (!clp->cl_principal && (clp->cl_flavor >= RPC_AUTH_GSS_KRB5)) 500 if (!clp->cl_principal && (clp->cl_flavor >= RPC_AUTH_GSS_KRB5))
500 return -EINVAL; 501 return -EINVAL;
501 502 if (cb->cb_minorversion) {
503 args.bc_xprt = clp->cl_cb_xprt;
504 args.protocol = XPRT_TRANSPORT_BC_TCP;
505 }
502 /* Create RPC client */ 506 /* Create RPC client */
503 client = rpc_create(&args); 507 client = rpc_create(&args);
504 if (IS_ERR(client)) { 508 if (IS_ERR(client)) {