Trond Myklebust 89f42494f9 SUNRPC: Don't call connect() more than once on a TCP socket
Avoid socket state races due to repeated calls to ->connect() using the
same socket. If connect() returns 0 due to the connection having
completed, but we are in fact in a closing state, then we may leave the
XPRT_CONNECTING flag set on the transport.

Reported-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Fixes: 3be232f11a3c ("SUNRPC: Prevent immediate close+reconnect")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
2022-03-22 15:52:55 -04:00
..
2022-01-22 08:33:37 +02:00
2021-09-04 10:25:26 -07:00
2022-01-22 08:33:37 +02:00
2021-07-08 14:03:23 -04:00
2022-01-16 07:42:58 +02:00
2021-08-10 14:18:35 -04:00