SUNRPC: Do not clear the source port in xs_reset_transport
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 8 Feb 2015 21:28:58 +0000 (16:28 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 9 Feb 2015 02:47:28 +0000 (21:47 -0500)
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>
net/sunrpc/xprtsock.c

index 20f25a837e06b0379b2cadb1895a89079f875f6c..ea1882f97912bd1fefed8f4e5d802f3d8fb16ab8 100644 (file)
@@ -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;