]> www.infradead.org Git - users/jedix/linux-maple.git/commit
SUNRPC: Handle EADDRNOTAVAIL on connection failures
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 1 Aug 2016 17:36:08 +0000 (13:36 -0400)
committerCalum Mackay <calum.mackay@oracle.com>
Wed, 28 Jun 2017 14:54:45 +0000 (15:54 +0100)
commit9b9ebe243bef49e2afbe61d277d4da075fbd67de
tree7c735209fbff7130f7905c0ec90cc6ebeacd5a34
parentdfaef45509afabb28b0a5656330d63841c70c327
SUNRPC: Handle EADDRNOTAVAIL on connection failures

If the connect attempt immediately fails with an EADDRNOTAVAIL error, then
that means our choice of source port number was bad.
This error is expected when we set the SO_REUSEPORT socket option and we
have 2 sockets sharing the same source and destination address and port
combinations.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Fixes: 402e23b4ed9ed ("SUNRPC: Fix stupid typo in xs_sock_set_reuseport")
Orabug: 26221910
(cherry picked from commit 1f4c17a03ba7f430d63dba8c8e08ff1e2712581d)
Signed-off-by: Calum Mackay <calum.mackay@oracle.com>
Reviewed-by: Manjunath Patil <manjunath.b.patil@oracle.com>
net/sunrpc/xprtsock.c