dlm: make tcp still work in multi-link env

[ Upstream commit 03d2b62208 ]

This patch bypasses multi-link errors in TCP mode, allowing dlm
to operate on the first tcp link.

Signed-off-by: Heming Zhao <heming.zhao@suse.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 61225b3395c21b6bf264bd790a805179eb4683c7)
This commit is contained in:
Heming Zhao 2025-03-10 15:36:21 +08:00 committed by Wentao Guan
parent 6a87f34fa3
commit e46ae3e79e
1 changed files with 2 additions and 2 deletions

View File

@ -1826,8 +1826,8 @@ static int dlm_tcp_listen_validate(void)
{
/* We don't support multi-homed hosts */
if (dlm_local_count > 1) {
log_print("TCP protocol can't handle multi-homed hosts, try SCTP");
return -EINVAL;
log_print("Detect multi-homed hosts but use only the first IP address.");
log_print("Try SCTP, if you want to enable multi-link.");
}
return 0;