Skip to content

Commit

Permalink
SUNRPC: Do not clear the source port in xs_reset_transport
Browse files Browse the repository at this point in the history
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: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Trond Myklebust committed Feb 9, 2015
1 parent 3913c78 commit 76698b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 76698b2

Please sign in to comment.