Skip to content

Commit fdda387

Browse files
Patrick Caulfieldswhiteho
authored andcommitted
[DLM] Add support for tcp communications
The following patch adds a TCP based communications layer to the DLM which is compile time selectable. The existing SCTP layer gives the advantage of allowing multihoming, whereas the TCP layer has been heavily tested in previous versions of the DLM and is known to be robust and therefore can be used as a baseline for performance testing. Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
1 parent 61057c6 commit fdda387

4 files changed

Lines changed: 1283 additions & 1 deletion

File tree

‎fs/dlm/Kconfig‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ config DLM
99
A general purpose distributed lock manager for kernel or userspace
1010
applications.
1111

12+
choice
13+
prompt "Select DLM communications protocol"
14+
depends on DLM
15+
default DLM_TCP
16+
help
17+
The DLM Can use TCP or SCTP for it's network communications.
18+
SCTP supports multi-homed operations whereas TCP doesn't.
19+
However, SCTP seems to have stability problems at the moment.
20+
21+
config DLM_TCP
22+
bool "TCP/IP"
23+
24+
config DLM_SCTP
25+
bool "SCTP"
26+
27+
endchoice
28+
1229
config DLM_DEBUG
1330
bool "DLM debugging"
1431
depends on DLM

‎fs/dlm/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dlm-y := ast.o \
44
dir.o \
55
lock.o \
66
lockspace.o \
7-
lowcomms.o \
87
main.o \
98
member.o \
109
memory.o \
@@ -17,3 +16,6 @@ dlm-y := ast.o \
1716
util.o
1817
dlm-$(CONFIG_DLM_DEBUG) += debug_fs.o
1918

19+
dlm-$(CONFIG_DLM_TCP) += lowcomms-tcp.o
20+
21+
dlm-$(CONFIG_DLM_SCTP) += lowcomms-sctp.o

0 commit comments

Comments
 (0)