mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
SUNRPC: rpc_clnt_set_transport() must not change the autobind setting
The autobind setting was supposed to be determined in rpc_create(), since commit c2866763b402 ("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>
This commit is contained in:
parent
214c13e380
commit
bf9be373b8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user