Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76698b23 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

SUNRPC: Do not clear the source port in xs_reset_transport



Now that we can reuse bound ports after a close, we never really want to
clear the transport's source port after it has been set. Doing so really
messes up the NFSv3 DRC on the server.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 3913c78c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -811,8 +811,6 @@ static void xs_reset_transport(struct sock_xprt *transport)
	if (sk == NULL)
		return;

	transport->srcport = 0;

	write_lock_bh(&sk->sk_callback_lock);
	transport->inet = NULL;
	transport->sock = NULL;