Add clustername to cluster connection

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Add DLM recovery callbacks

These are the callbacks called by the fs/dlm code in case the membership
changes. If there is a failure while/during calling any of these, the
DLM creates a new membership and relays to the rest of the nodes.

recover_prep() is called when DLM understands a node is down.
recover_slot() is called once all nodes have acknowledged recover_prep
and recovery can begin.
recover_done() is called once the recovery is complete. It returns the
new membership.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Shift allocation ocfs2_live_connection to user_connect()

We perform this because the DLM recovery callbacks will require
the ocfs2_live_connection structure to record the node information
when dlm_new_lockspace() is updated.

[AKPM] rc initialization is not required because it assigned in case of
errors. It will be cleared by compiler anyways.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Pass ocfs2_cluster_connection to ocfs2_this_node

This is done to differentiate between using and not using controld
and use the connection information accordingly.
We need to be backward compatible. So, we use a new enum
ocfs2_connection_type to identify when controld is used and when
it is not.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Use the new DLM operation callbacks for recovery and membership

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>