SUNRPC: Never reuse the socket port after an xs_close()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 Mar 2011 22:40:10 +0000 (18:40 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 22 Mar 2011 22:42:33 +0000 (18:42 -0400)
commit246408dcd5dfeef2df437ccb0ef4d6ee87805f58
tree681179a81ef914616f33edf83129a716081b9054
parentb8413f98f997bb3ed7327e6d7117e7e91ce010c3
SUNRPC: Never reuse the socket port after an xs_close()

If we call xs_close(), we're in one of two situations:
 - Autoclose, which means we don't expect to resend a request
 - bind+connect failed, which probably means the port is in use

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
net/sunrpc/xprtsock.c