summaryrefslogtreecommitdiff
path: root/drivers/md/md-cluster.h
diff options
context:
space:
mode:
authorGoldwyn Rodrigues <rgoldwyn@suse.com>2014-03-30 00:42:49 -0500
committerGoldwyn Rodrigues <rgoldwyn@suse.com>2015-02-23 07:30:11 -0600
commitcf921cc19cf7c1e99f730a2faa02d80817d684a2 (patch)
tree702ad727e3310bc64b890bbe3195e50c3944370f /drivers/md/md-cluster.h
parentca8895d9bb41e743271c42a4438a296de891b73b (diff)
downloadlinux-next-cf921cc19cf7c1e99f730a2faa02d80817d684a2.tar.gz
Add node recovery callbacks
DLM offers callbacks when a node fails and the lock remastery is performed: 1. recover_prep: called when DLM discovers a node is down 2. recover_slot: called when DLM identifies the node and recovery can start 3. recover_done: called when all nodes have completed recover_slot recover_slot() and recover_done() are also called when the node joins initially in order to inform the node with its slot number. These slot numbers start from one, so we deduct one to make it start with zero which the cluster-md code uses. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Diffstat (limited to 'drivers/md/md-cluster.h')
-rw-r--r--drivers/md/md-cluster.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/md-cluster.h b/drivers/md/md-cluster.h
index aa9f07bd6b96..52a21e0d6dbc 100644
--- a/drivers/md/md-cluster.h
+++ b/drivers/md/md-cluster.h
@@ -8,8 +8,9 @@
struct mddev;
struct md_cluster_operations {
- int (*join)(struct mddev *mddev);
+ int (*join)(struct mddev *mddev, int nodes);
int (*leave)(struct mddev *mddev);
+ int (*slot_number)(struct mddev *mddev);
};
#endif /* _MD_CLUSTER_H */