projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c526611
)
SUNRPC: Use TCP for local rpcbind upcalls
author
Chuck Lever
<chuck.lever@oracle.com>
Thu, 3 Dec 2009 20:58:56 +0000
(15:58 -0500)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 3 Dec 2009 20:58:56 +0000
(15:58 -0500)
Use TCP with the soft connect semantic for local rpcbind upcalls so
the kernel can detect immediately if the local rpcbind daemon is not
running.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/rpcb_clnt.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/rpcb_clnt.c
b/net/sunrpc/rpcb_clnt.c
index 116db74dd942d8d04b40ba4a5eb4b1258224b1d6..401154094ee1811f53e3deee05b7f48234ba2443 100644
(file)
--- a/
net/sunrpc/rpcb_clnt.c
+++ b/
net/sunrpc/rpcb_clnt.c
@@
-176,7
+176,7
@@
static DEFINE_MUTEX(rpcb_create_local_mutex);
static int rpcb_create_local(void)
{
struct rpc_create_args args = {
- .protocol = XPRT_TRANSPORT_
UD
P,
+ .protocol = XPRT_TRANSPORT_
TC
P,
.address = (struct sockaddr *)&rpcb_inaddr_loopback,
.addrsize = sizeof(rpcb_inaddr_loopback),
.servername = "localhost",
@@
-258,7
+258,7
@@
static int rpcb_register_call(struct rpc_clnt *clnt, struct rpc_message *msg)
msg->rpc_resp = &result;
- error = rpc_call_sync(clnt, msg,
0
);
+ error = rpc_call_sync(clnt, msg,
RPC_TASK_SOFTCONN
);
if (error < 0) {
dprintk("RPC: failed to contact local rpcbind "
"server (errno %d).\n", -error);