SUNRPC: Only save the TCP source port after the connection is complete
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 16 Mar 2022 23:18:25 +0000 (19:18 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Mar 2022 19:52:55 +0000 (15:52 -0400)
commit3b21f757c309c84a23a26d8cab20b743e0719705
tree4018fdd451aeabb697457df769e3662d66a64051
parent89f42494f92f448747bd8a7ab1ae8b5d5520577d
SUNRPC: Only save the TCP source port after the connection is complete

Since the RPC client uses a non-blocking connect(), we do not expect to
see it return '0' under normal circumstances.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c