Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164648
b: refs/heads/master
c: 3ddc8bf
h: refs/heads/master
v: v3
  • Loading branch information
Alexandros Batsakis authored and J. Bruce Fields committed Sep 16, 2009
1 parent b4547b3 commit c92cf27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0421b5c55acd0e88920cb9a5bcea6ed738186853
refs/heads/master: 3ddc8bf5f31c906c558ce3da4856208a864d2fc1
8 changes: 6 additions & 2 deletions trunk/fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <linux/nfsd/state.h>
#include <linux/sunrpc/sched.h>
#include <linux/nfs4.h>
#include <linux/sunrpc/xprtsock.h>

#define NFSDDBG_FACILITY NFSDDBG_PROC

Expand Down Expand Up @@ -483,7 +484,7 @@ int setup_callback_client(struct nfs4_client *clp)
.to_retries = 0,
};
struct rpc_create_args args = {
.protocol = IPPROTO_TCP,
.protocol = XPRT_TRANSPORT_TCP,
.address = (struct sockaddr *) &cb->cb_addr,
.addrsize = cb->cb_addrlen,
.timeout = &timeparms,
Expand All @@ -498,7 +499,10 @@ int setup_callback_client(struct nfs4_client *clp)

if (!clp->cl_principal && (clp->cl_flavor >= RPC_AUTH_GSS_KRB5))
return -EINVAL;

if (cb->cb_minorversion) {
args.bc_xprt = clp->cl_cb_xprt;
args.protocol = XPRT_TRANSPORT_BC_TCP;
}
/* Create RPC client */
client = rpc_create(&args);
if (IS_ERR(client)) {
Expand Down

0 comments on commit c92cf27

Please sign in to comment.