Whamcloud - gitweb
715055b51cddf89fa366abd00767112e27fa88a0
[fs/lustre-release.git] / lustre / include / linux / lustre_ha.h
1
2 #define MGR_STOPPING   1
3 #define MGR_RUNNING    2
4 #define MGR_STOPPED    4
5 #define MGR_KILLED     8
6 #define MGR_EVENT      16
7 #define MGR_RECOVERING 32
8 #define MGR_SIGNAL     64
9
10 struct lustre_ha_mgr {
11         __u32               mgr_flags; 
12         struct task_struct *mgr_thread;
13         wait_queue_head_t   mgr_waitq;
14         wait_queue_head_t   mgr_ctl_waitq;
15         spinlock_t          mgr_lock;
16 };
17
18 struct lustre_ha_thread { 
19         char                 *name;
20         struct lustre_ha_mgr *mgr; 
21         struct obd_device    *dev;
22 };