]> 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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 30 Apr 2022 00:38:27 +0000 (20:38 -0400)
commitbd56834a1d13bcb9365517fb6712b1ba7ba24a73
tree4bdeaf7a39b2ee413db40b4d93f57b628149931b
parent41872f0e49110e5ba5b08a598c1648e5979dcb4a
Revert "SUNRPC: attempt AF_LOCAL connect on setup"

This reverts commit 32da095a979a291f707eabe12bc880b7a82989e8.

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>
net/sunrpc/xprtsock.c