Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dlmrecovery.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/highmem.h>
#include <linux/init.h>
#include <linux/sysctl.h>
#include <linux/random.h>
#include <linux/blkdev.h>
#include <linux/socket.h>
#include <linux/inet.h>
#include <linux/timer.h>
#include <linux/kthread.h>
#include <linux/delay.h>
#include "cluster/heartbeat.h"
#include "cluster/nodemanager.h"
#include "cluster/tcp.h"
#include "dlmapi.h"
#include "dlmcommon.h"
#include "dlmdomain.h"
#include "cluster/masklog.h"

Go to the source code of this file.

Macros

#define MLOG_MASK_PREFIX   (ML_DLM|ML_DLM_RECOVERY)
 
#define DLM_RECO_THREAD_TIMEOUT_MS   (5 * 1000)
 
#define DLM_FINALIZE_STAGE2   0x01
 

Functions

void dlm_complete_recovery_thread (struct dlm_ctxt *dlm)
 
int dlm_launch_recovery_thread (struct dlm_ctxt *dlm)
 
void dlm_kick_recovery_thread (struct dlm_ctxt *dlm)
 
void dlm_dispatch_work (struct work_struct *work)
 
int dlm_is_node_dead (struct dlm_ctxt *dlm, u8 node)
 
void dlm_wait_for_node_death (struct dlm_ctxt *dlm, u8 node, int timeout)
 
void dlm_wait_for_node_recovery (struct dlm_ctxt *dlm, u8 node, int timeout)
 
void dlm_wait_for_recovery (struct dlm_ctxt *dlm)
 
int dlm_request_all_locks_handler (struct o2net_msg *msg, u32 len, void *data, void **ret_data)
 
int dlm_reco_data_done_handler (struct o2net_msg *msg, u32 len, void *data, void **ret_data)
 
int dlm_send_one_lockres (struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_migratable_lockres *mres, u8 send_to, u8 flags)
 
int dlm_mig_lockres_handler (struct o2net_msg *msg, u32 len, void *data, void **ret_data)
 
int dlm_do_master_requery (struct dlm_ctxt *dlm, struct dlm_lock_resource *res, u8 nodenum, u8 *real_master)
 
int dlm_master_requery_handler (struct o2net_msg *msg, u32 len, void *data, void **ret_data)
 
void dlm_move_lockres_to_recovery_list (struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
 
void dlm_hb_node_down_cb (struct o2nm_node *node, int idx, void *data)
 
void dlm_hb_node_up_cb (struct o2nm_node *node, int idx, void *data)
 
int dlm_begin_reco_handler (struct o2net_msg *msg, u32 len, void *data, void **ret_data)
 
int dlm_finalize_reco_handler (struct o2net_msg *msg, u32 len, void *data, void **ret_data)
 

Macro Definition Documentation

#define DLM_FINALIZE_STAGE2   0x01

Definition at line 2759 of file dlmrecovery.c.

#define DLM_RECO_THREAD_TIMEOUT_MS   (5 * 1000)

Definition at line 302 of file dlmrecovery.c.

#define MLOG_MASK_PREFIX   (ML_DLM|ML_DLM_RECOVERY)

Definition at line 52 of file dlmrecovery.c.

Function Documentation

int dlm_begin_reco_handler ( struct o2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 2685 of file dlmrecovery.c.

void dlm_complete_recovery_thread ( struct dlm_ctxt dlm)

Definition at line 221 of file dlmrecovery.c.

void dlm_dispatch_work ( struct work_struct work)

Definition at line 155 of file dlmrecovery.c.

int dlm_do_master_requery ( struct dlm_ctxt dlm,
struct dlm_lock_resource res,
u8  nodenum,
u8 real_master 
)

Definition at line 1638 of file dlmrecovery.c.

int dlm_finalize_reco_handler ( struct o2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 2816 of file dlmrecovery.c.

void dlm_hb_node_down_cb ( struct o2nm_node node,
int  idx,
void data 
)

Definition at line 2408 of file dlmrecovery.c.

void dlm_hb_node_up_cb ( struct o2nm_node node,
int  idx,
void data 
)

Definition at line 2429 of file dlmrecovery.c.

int dlm_is_node_dead ( struct dlm_ctxt dlm,
u8  node 
)

Definition at line 344 of file dlmrecovery.c.

void dlm_kick_recovery_thread ( struct dlm_ctxt dlm)

Definition at line 194 of file dlmrecovery.c.

int dlm_launch_recovery_thread ( struct dlm_ctxt dlm)

Definition at line 206 of file dlmrecovery.c.

int dlm_master_requery_handler ( struct o2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 1672 of file dlmrecovery.c.

int dlm_mig_lockres_handler ( struct o2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 1351 of file dlmrecovery.c.

void dlm_move_lockres_to_recovery_list ( struct dlm_ctxt dlm,
struct dlm_lock_resource res 
)

Definition at line 1997 of file dlmrecovery.c.

int dlm_reco_data_done_handler ( struct o2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 976 of file dlmrecovery.c.

int dlm_request_all_locks_handler ( struct o2net_msg msg,
u32  len,
void data,
void **  ret_data 
)

Definition at line 820 of file dlmrecovery.c.

int dlm_send_one_lockres ( struct dlm_ctxt dlm,
struct dlm_lock_resource res,
struct dlm_migratable_lockres mres,
u8  send_to,
u8  flags 
)

Definition at line 1266 of file dlmrecovery.c.

void dlm_wait_for_node_death ( struct dlm_ctxt dlm,
u8  node,
int  timeout 
)

Definition at line 365 of file dlmrecovery.c.

void dlm_wait_for_node_recovery ( struct dlm_ctxt dlm,
u8  node,
int  timeout 
)

Definition at line 382 of file dlmrecovery.c.

void dlm_wait_for_recovery ( struct dlm_ctxt dlm)

Definition at line 415 of file dlmrecovery.c.