[PATCH] RPC: make sure to get the same local port number when reconnecting
authorChuck Lever <cel@netapp.com>
Thu, 25 Aug 2005 23:25:55 +0000 (16:25 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 23 Sep 2005 16:38:52 +0000 (12:38 -0400)
commit3167e12c0c424f3c323944701615343022d86418
tree952961988fe19c19fc63f9cffb5edb4566f3527f
parent529b33c6db0120126b1381faa51406dc463acdc9
[PATCH] RPC: make sure to get the same local port number when reconnecting

 Implement a best practice: if the remote end drops our connection, try to
 reconnect using the same port number.  This is important because the NFS
 server's Duplicate Reply Cache often hashes on the source port number.
 If the client reuses the port number when it reconnects, the server's DRC
 will be more effective.

 Based on suggestions by Mike Eisler, Olaf Kirch, and Alexey Kuznetsky.

 Test-plan:
 Destructive testing.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprtsock.c