Commit bf9be373 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: rpc_clnt_set_transport() must not change the autobind setting



The autobind setting was supposed to be determined in rpc_create(),
since commit c2866763 ("SUNRPC: use sockaddr + size when creating
remote transport endpoints").

Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 214c13e3
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -270,9 +270,6 @@ static struct rpc_xprt *rpc_clnt_set_transport(struct rpc_clnt *clnt,
	old = rcu_dereference_protected(clnt->cl_xprt,
			lockdep_is_held(&clnt->cl_lock));

	if (!xprt_bound(xprt))
		clnt->cl_autobind = 1;

	clnt->cl_timeout = timeout;
	rcu_assign_pointer(clnt->cl_xprt, xprt);
	spin_unlock(&clnt->cl_lock);