From: "J. Bruce Fields" <bfields@redhat.com>
To: linux-nfs@vger.kernel.org
Cc: "J. Bruce Fields" <bfields@redhat.com>
Subject: [PATCH 1/5] SUNRPC: attempt AF_LOCAL connect on setup
Date: Mon, 15 Apr 2013 15:35:03 -0400 [thread overview]
Message-ID: <1366054508-27604-2-git-send-email-bfields@redhat.com> (raw)
In-Reply-To: <1366054508-27604-1-git-send-email-bfields@redhat.com>
From: "J. Bruce Fields" <bfields@redhat.com>
In the gss-proxy case, setup time is when I know I'll have the right
namespace for the connect.
In other cases, it might be useful to get any connection errors
earlier--though actually in practice it doesn't make any difference for
rpcbind.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
---
net/sunrpc/xprtsock.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 3d02130..425a9e9 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -2655,6 +2655,9 @@ static struct rpc_xprt *xs_setup_local(struct xprt_create *args)
}
xprt_set_bound(xprt);
xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL);
+ ret = ERR_PTR(xs_local_setup_socket(transport));
+ if (ret)
+ goto out_err;
break;
default:
ret = ERR_PTR(-EAFNOSUPPORT);
--
1.7.9.5
next prev parent reply other threads:[~2013-04-15 19:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 19:35 [PATCH 0/5] (v4) gss-proxy upcall for nfsd J. Bruce Fields
2013-04-15 19:35 ` J. Bruce Fields [this message]
2013-04-15 19:35 ` [PATCH 2/5] SUNRPC: allow disabling idle timeout J. Bruce Fields
2013-04-18 17:00 ` J. Bruce Fields
2013-04-18 17:07 ` Myklebust, Trond
2013-04-18 17:14 ` J. Bruce Fields
2013-04-18 17:25 ` Chuck Lever
2013-04-24 15:00 ` J. Bruce Fields
2013-04-24 15:03 ` Myklebust, Trond
2013-04-26 15:43 ` J. Bruce Fields
2013-04-15 19:35 ` [PATCH 3/5] SUNRPC: conditionally return endtime from import_sec_context J. Bruce Fields
2013-04-15 19:35 ` [PATCH 4/5] SUNRPC: Add RPC based upcall mechanism for RPCGSS auth J. Bruce Fields
2013-04-15 19:35 ` [PATCH 5/5] SUNRPC: Use gssproxy upcall for server RPCGSS authentication J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366054508-27604-2-git-send-email-bfields@redhat.com \
--to=bfields@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).