diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /fs/dlm/dlm_internal.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r-- | fs/dlm/dlm_internal.h | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index f632b58cd222..0262451eb9c6 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h | |||
@@ -192,11 +192,6 @@ struct dlm_args { | |||
192 | * lkb is a process copy, the nodeid specifies the lock master. | 192 | * lkb is a process copy, the nodeid specifies the lock master. |
193 | */ | 193 | */ |
194 | 194 | ||
195 | /* lkb_ast_type */ | ||
196 | |||
197 | #define AST_COMP 1 | ||
198 | #define AST_BAST 2 | ||
199 | |||
200 | /* lkb_status */ | 195 | /* lkb_status */ |
201 | 196 | ||
202 | #define DLM_LKSTS_WAITING 1 | 197 | #define DLM_LKSTS_WAITING 1 |
@@ -214,9 +209,24 @@ struct dlm_args { | |||
214 | #define DLM_IFL_WATCH_TIMEWARN 0x00400000 | 209 | #define DLM_IFL_WATCH_TIMEWARN 0x00400000 |
215 | #define DLM_IFL_TIMEOUT_CANCEL 0x00800000 | 210 | #define DLM_IFL_TIMEOUT_CANCEL 0x00800000 |
216 | #define DLM_IFL_DEADLOCK_CANCEL 0x01000000 | 211 | #define DLM_IFL_DEADLOCK_CANCEL 0x01000000 |
212 | #define DLM_IFL_STUB_MS 0x02000000 /* magic number for m_flags */ | ||
217 | #define DLM_IFL_USER 0x00000001 | 213 | #define DLM_IFL_USER 0x00000001 |
218 | #define DLM_IFL_ORPHAN 0x00000002 | 214 | #define DLM_IFL_ORPHAN 0x00000002 |
219 | 215 | ||
216 | #define DLM_CALLBACKS_SIZE 6 | ||
217 | |||
218 | #define DLM_CB_CAST 0x00000001 | ||
219 | #define DLM_CB_BAST 0x00000002 | ||
220 | #define DLM_CB_SKIP 0x00000004 | ||
221 | |||
222 | struct dlm_callback { | ||
223 | uint64_t seq; | ||
224 | uint32_t flags; /* DLM_CBF_ */ | ||
225 | int sb_status; /* copy to lksb status */ | ||
226 | uint8_t sb_flags; /* copy to lksb flags */ | ||
227 | int8_t mode; /* rq mode of bast, gr mode of cast */ | ||
228 | }; | ||
229 | |||
220 | struct dlm_lkb { | 230 | struct dlm_lkb { |
221 | struct dlm_rsb *lkb_resource; /* the rsb */ | 231 | struct dlm_rsb *lkb_resource; /* the rsb */ |
222 | struct kref lkb_ref; | 232 | struct kref lkb_ref; |
@@ -236,13 +246,7 @@ struct dlm_lkb { | |||
236 | 246 | ||
237 | int8_t lkb_wait_type; /* type of reply waiting for */ | 247 | int8_t lkb_wait_type; /* type of reply waiting for */ |
238 | int8_t lkb_wait_count; | 248 | int8_t lkb_wait_count; |
239 | int8_t lkb_ast_type; /* type of ast queued for */ | 249 | int lkb_wait_nodeid; /* for debugging */ |
240 | int8_t lkb_ast_first; /* type of first ast queued */ | ||
241 | |||
242 | int8_t lkb_bastmode; /* req mode of queued bast */ | ||
243 | int8_t lkb_castmode; /* gr mode of queued cast */ | ||
244 | int8_t lkb_bastmode_done; /* last delivered bastmode */ | ||
245 | int8_t lkb_castmode_done; /* last delivered castmode */ | ||
246 | 250 | ||
247 | struct list_head lkb_idtbl_list; /* lockspace lkbtbl */ | 251 | struct list_head lkb_idtbl_list; /* lockspace lkbtbl */ |
248 | struct list_head lkb_statequeue; /* rsb g/c/w list */ | 252 | struct list_head lkb_statequeue; /* rsb g/c/w list */ |
@@ -251,10 +255,16 @@ struct dlm_lkb { | |||
251 | struct list_head lkb_astqueue; /* need ast to be sent */ | 255 | struct list_head lkb_astqueue; /* need ast to be sent */ |
252 | struct list_head lkb_ownqueue; /* list of locks for a process */ | 256 | struct list_head lkb_ownqueue; /* list of locks for a process */ |
253 | struct list_head lkb_time_list; | 257 | struct list_head lkb_time_list; |
254 | ktime_t lkb_time_bast; /* for debugging */ | ||
255 | ktime_t lkb_timestamp; | 258 | ktime_t lkb_timestamp; |
259 | ktime_t lkb_wait_time; | ||
256 | unsigned long lkb_timeout_cs; | 260 | unsigned long lkb_timeout_cs; |
257 | 261 | ||
262 | struct dlm_callback lkb_callbacks[DLM_CALLBACKS_SIZE]; | ||
263 | struct dlm_callback lkb_last_cast; | ||
264 | struct dlm_callback lkb_last_bast; | ||
265 | ktime_t lkb_last_cast_time; /* for debugging */ | ||
266 | ktime_t lkb_last_bast_time; /* for debugging */ | ||
267 | |||
258 | char *lkb_lvbptr; | 268 | char *lkb_lvbptr; |
259 | struct dlm_lksb *lkb_lksb; /* caller's status block */ | 269 | struct dlm_lksb *lkb_lksb; /* caller's status block */ |
260 | void (*lkb_astfn) (void *astparam); | 270 | void (*lkb_astfn) (void *astparam); |
@@ -544,8 +554,6 @@ struct dlm_user_args { | |||
544 | (dlm_user_proc) on the struct file, | 554 | (dlm_user_proc) on the struct file, |
545 | the process's locks point back to it*/ | 555 | the process's locks point back to it*/ |
546 | struct dlm_lksb lksb; | 556 | struct dlm_lksb lksb; |
547 | int old_mode; | ||
548 | int update_user_lvb; | ||
549 | struct dlm_lksb __user *user_lksb; | 557 | struct dlm_lksb __user *user_lksb; |
550 | void __user *castparam; | 558 | void __user *castparam; |
551 | void __user *castaddr; | 559 | void __user *castaddr; |