fs: dlm: remove check SCTP is loaded message
authorAlexander Aring <aahringo@redhat.com>
Tue, 2 Nov 2021 19:17:10 +0000 (15:17 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 2 Nov 2021 19:39:20 +0000 (14:39 -0500)
Since commit 764ff4011424 ("fs: dlm: auto load sctp module") we try
load the sctp module before we try to create a sctp kernel socket. That
a socket creation fails now has more likely other reasons. This patch
removes the part of error to load the sctp module and instead printout
the error code.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c

index 8f715c620e1f86942487cd08db847d32f7807f4d..bee3757eb4c7394b90c76d38779a52b9887e9956 100644 (file)
@@ -1775,7 +1775,7 @@ static int dlm_listen_for_all(void)
        result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family,
                                  SOCK_STREAM, dlm_proto_ops->proto, &sock);
        if (result < 0) {
-               log_print("Can't create comms socket, check SCTP is loaded");
+               log_print("Can't create comms socket: %d", result);
                goto out;
        }