]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dlm: make tcp still work in multi-link env
authorHeming Zhao <heming.zhao@suse.com>
Mon, 10 Mar 2025 07:36:21 +0000 (15:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:37:56 +0000 (14:37 +0200)
[ Upstream commit 03d2b62208a336a3bb984b9465ef6d89a046ea22 ]

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>
fs/dlm/lowcomms.c

index 1eb95ba7e7772407fde484ac79f11fed785e6f47..5b534255540772bf56ee6bf1c3f881f4301c8ae9 100644 (file)
@@ -1852,8 +1852,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;