]> git.ipfire.org Git - thirdparty/linux.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)
committerDavid Teigland <teigland@redhat.com>
Tue, 18 Mar 2025 15:49:22 +0000 (10:49 -0500)
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>
fs/dlm/lowcomms.c

index d28141829c051b5fb7cedf73a27b15c49b3f7307..70abd4da17a63a0461f4fbe62a9582a66a764eb3 100644 (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;