summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-cluster.h
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2014-03-29 16:01:53 +0100
committerGoldwyn Rodrigues <rgoldwyn@suse.com>2015-02-23 14:28:42 +0100
commitedb39c9deda87da5aad9c090e2e8eaf8470c852c (patch)
tree22b789f9e6bdcfd892d9f6a7e757e1fe58579795 /drivers/md/md-cluster.h
parentDLM lock and unlock functions (diff)
downloadlinux-edb39c9deda87da5aad9c090e2e8eaf8470c852c.tar.xz
linux-edb39c9deda87da5aad9c090e2e8eaf8470c852c.zip
Introduce md_cluster_operations to handle cluster functions
This allows dynamic registering of cluster hooks. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Diffstat (limited to 'drivers/md/md-cluster.h')
-rw-r--r--drivers/md/md-cluster.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/md/md-cluster.h b/drivers/md/md-cluster.h
new file mode 100644
index 000000000000..aa9f07bd6b96
--- /dev/null
+++ b/drivers/md/md-cluster.h
@@ -0,0 +1,15 @@
+
+
+#ifndef _MD_CLUSTER_H
+#define _MD_CLUSTER_H
+
+#include "md.h"
+
+struct mddev;
+
+struct md_cluster_operations {
+ int (*join)(struct mddev *mddev);
+ int (*leave)(struct mddev *mddev);
+};
+
+#endif /* _MD_CLUSTER_H */