Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "SUNRPC: attempt AF_LOCAL connect on setup"

This reverts commit 7073ea8799a8cf73db60270986f14e4aae20fa80.

We must not try to connect the socket while the transport is under
construction, because the mechanisms to safely tear it down are not in
place. As the code stands, we end up leaking the sockets on a connection
error.

Reported-by: wanghai (M) <wanghai38@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>

-3
-3
net/sunrpc/xprtsock.c
··· 2875 2875 } 2876 2876 xprt_set_bound(xprt); 2877 2877 xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL); 2878 - ret = ERR_PTR(xs_local_setup_socket(transport)); 2879 - if (ret) 2880 - goto out_err; 2881 2878 break; 2882 2879 default: 2883 2880 ret = ERR_PTR(-EAFNOSUPPORT);