Skip to content

Commit bf9be37

Browse files
author
Trond Myklebust
committed
SUNRPC: rpc_clnt_set_transport() must not change the autobind setting
The autobind setting was supposed to be determined in rpc_create(), since commit c286676 ("SUNRPC: use sockaddr + size when creating remote transport endpoints"). Reviewed-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent 214c13e commit bf9be37

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/sunrpc/clnt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,6 @@ static struct rpc_xprt *rpc_clnt_set_transport(struct rpc_clnt *clnt,
270270
old = rcu_dereference_protected(clnt->cl_xprt,
271271
lockdep_is_held(&clnt->cl_lock));
272272

273-
if (!xprt_bound(xprt))
274-
clnt->cl_autobind = 1;
275-
276273
clnt->cl_timeout = timeout;
277274
rcu_assign_pointer(clnt->cl_xprt, xprt);
278275
spin_unlock(&clnt->cl_lock);

0 commit comments

Comments
 (0)