Skip to content

Commit 3d1b0d3

Browse files
author
Trond Myklebust
committed
Revert "SUNRPC: Ensure gss-proxy connects on setup"
This reverts commit 892de36. The gssproxy server is unresponsive when it calls into the kernel to start the upcall service, so it will not reply to our RPC ping at all. Reported-by: "J.Bruce Fields" <[email protected]> Fixes: 892de36 ("SUNRPC: Ensure gss-proxy connects on setup") Signed-off-by: Trond Myklebust <[email protected]>
1 parent 4b97bac commit 3d1b0d3

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

include/linux/sunrpc/clnt.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ struct rpc_add_xprt_test {
160160
#define RPC_CLNT_CREATE_NO_RETRANS_TIMEOUT (1UL << 9)
161161
#define RPC_CLNT_CREATE_SOFTERR (1UL << 10)
162162
#define RPC_CLNT_CREATE_REUSEPORT (1UL << 11)
163-
#define RPC_CLNT_CREATE_IGNORE_NULL_UNAVAIL (1UL << 12)
164163

165164
struct rpc_clnt *rpc_create(struct rpc_create_args *args);
166165
struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *,

net/sunrpc/auth_gss/gss_rpc_upcall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static int gssp_rpc_create(struct net *net, struct rpc_clnt **_clnt)
9797
* timeout, which would result in reconnections being
9898
* done without the correct namespace:
9999
*/
100-
.flags = RPC_CLNT_CREATE_IGNORE_NULL_UNAVAIL |
100+
.flags = RPC_CLNT_CREATE_NOPING |
101101
RPC_CLNT_CREATE_NO_IDLE_TIMEOUT
102102
};
103103
struct rpc_clnt *clnt;

net/sunrpc/clnt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,6 @@ static struct rpc_clnt *rpc_create_xprt(struct rpc_create_args *args,
479479

480480
if (!(args->flags & RPC_CLNT_CREATE_NOPING)) {
481481
int err = rpc_ping(clnt);
482-
if ((args->flags & RPC_CLNT_CREATE_IGNORE_NULL_UNAVAIL) &&
483-
err == -EOPNOTSUPP)
484-
err = 0;
485482
if (err != 0) {
486483
rpc_shutdown_client(clnt);
487484
return ERR_PTR(err);

0 commit comments

Comments
 (0)