]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "SUNRPC: attempt AF_LOCAL connect on setup"
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 29 Apr 2022 16:27:30 +0000 (12:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:30:04 +0000 (12:30 +0200)
commitddb2f474da070463159cb4387a5e6b30338b4e1d
tree335262a2474b6328570b8bb117d2e0e97ed89b05
parent8ea974747999c18419657e926491eb0bf13d7e60
Revert "SUNRPC: attempt AF_LOCAL connect on setup"

commit 9481858df7ce028fde481c995723e113faeaecd1 upstream.

This reverts commit cad718d9315db3f05d5c39bd1db021aef0d463c5.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprtsock.c