Commit 80e67d9b authored by Trond Myklebust's avatar Trond Myklebust Committed by Zheng Zengkai
Browse files

Revert "SUNRPC: attempt AF_LOCAL connect on setup"

stable inclusion
from stable-v5.10.115
commit 70d25d4fba24b98bb1f0d4f26ec90ca2f262337b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5IZ9C

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=70d25d4fba24b98bb1f0d4f26ec90ca2f262337b



--------------------------------

commit a3d0562d upstream.

This reverts commit 7073ea87.

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: default avatarwanghai (M) <wanghai38@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 9e590bf8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment