Commit 57451161 authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland
Browse files

dlm: reject SCTP configuration if not enabled



Reject SCTP dlm configuration if the kernel was never build with SCTP.
Currently the only one known user space tool "dlm_controld" will drop an
error in the logs and getting stuck. This behaviour should be fixed to
deliver an error to the user or fallback to TCP.

Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Reviewed-by: default avatarHeming zhao <heming.zhao@suse.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 55612ddb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -197,6 +197,9 @@ static int dlm_check_protocol_and_dlm_running(unsigned int x)
		break;
	case 1:
		/* SCTP */
		if (!IS_ENABLED(CONFIG_IP_SCTP))
			return -EOPNOTSUPP;

		break;
	default:
		return -EINVAL;