aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2014-03-07 12:21:15 -0500
committerGoldwyn Rodrigues <rgoldwyn@suse.com>2015-02-23 08:28:42 -0500
commit8e854e9cfd1cc3837b4bd96643d5174a72d9f741 (patch)
tree9530b9ccba292e172918faf4a80b2cc55cab6b11
parent183bdf5106af069a774146c4f910a80ad1f57485 (diff)
Create a separate module for clustering support
Tagged as EXPERIMENTAL for now. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
-rw-r--r--drivers/md/Kconfig16
-rw-r--r--drivers/md/Makefile1
-rw-r--r--drivers/md/md-cluster.c28
3 files changed, 45 insertions, 0 deletions
diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig
index 63e05e32b462..eed1fec2d97b 100644
--- a/drivers/md/Kconfig
+++ b/drivers/md/Kconfig
@@ -175,6 +175,22 @@ config MD_FAULTY
175 175
176 In unsure, say N. 176 In unsure, say N.
177 177
178
179config MD_CLUSTER
180 tristate "Cluster Support for MD (EXPERIMENTAL)"
181 depends on BLK_DEV_MD
182 depends on DLM
183 default n
184 ---help---
185 Clustering support for MD devices. This enables locking and
186 synchronization across multiple systems on the cluster, so all
187 nodes in the cluster can access the MD devices simultaneously.
188
189 This brings the redundancy (and uptime) of RAID levels across the
190 nodes of the cluster.
191
192 If unsure, say N.
193
178source "drivers/md/bcache/Kconfig" 194source "drivers/md/bcache/Kconfig"
179 195
180config BLK_DEV_DM_BUILTIN 196config BLK_DEV_DM_BUILTIN
diff --git a/drivers/md/Makefile b/drivers/md/Makefile
index a2da532b1c2b..7ed86876f3b7 100644
--- a/drivers/md/Makefile
+++ b/drivers/md/Makefile
@@ -30,6 +30,7 @@ obj-$(CONFIG_MD_RAID10) += raid10.o
30obj-$(CONFIG_MD_RAID456) += raid456.o 30obj-$(CONFIG_MD_RAID456) += raid456.o
31obj-$(CONFIG_MD_MULTIPATH) += multipath.o 31obj-$(CONFIG_MD_MULTIPATH) += multipath.o
32obj-$(CONFIG_MD_FAULTY) += faulty.o 32obj-$(CONFIG_MD_FAULTY) += faulty.o
33obj-$(CONFIG_MD_CLUSTER) += md-cluster.o
33obj-$(CONFIG_BCACHE) += bcache/ 34obj-$(CONFIG_BCACHE) += bcache/
34obj-$(CONFIG_BLK_DEV_MD) += md-mod.o 35obj-$(CONFIG_BLK_DEV_MD) += md-mod.o
35obj-$(CONFIG_BLK_DEV_DM) += dm-mod.o 36obj-$(CONFIG_BLK_DEV_DM) += dm-mod.o
diff --git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c
new file mode 100644
index 000000000000..f377e71949c5
--- /dev/null
+++ b/drivers/md/md-cluster.c
@@ -0,0 +1,28 @@
1/*
2 * Copyright (C) 2015, SUSE
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 */
10
11
12#include <linux/module.h>
13
14static int __init cluster_init(void)
15{
16 pr_warn("md-cluster: EXPERIMENTAL. Use with caution\n");
17 pr_info("Registering Cluster MD functions\n");
18 return 0;
19}
20
21static void cluster_exit(void)
22{
23}
24
25module_init(cluster_init);
26module_exit(cluster_exit);
27MODULE_LICENSE("GPL");
28MODULE_DESCRIPTION("Clustering support for MD");