aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/dlm_internal.h
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2011-03-28 15:17:26 -0400
committerDavid Teigland <teigland@redhat.com>2011-04-01 15:19:06 -0400
commitc6ff669bac5c409f4cb74366248f51b73f7d6feb (patch)
tree14c4b7dc943a7dde8fd6d80bc9d149dadc0d59b8 /fs/dlm/dlm_internal.h
parent4bcad6c1ef53a9a0224f4654ceb3b9030d0769ec (diff)
dlm: delayed reply message warning
Add an option (disabled by default) to print a warning message when a lock has been waiting a configurable amount of time for a reply message from another node. This is mainly for debugging. Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r--fs/dlm/dlm_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h
index b94204913011..6a92478fe1f1 100644
--- a/fs/dlm/dlm_internal.h
+++ b/fs/dlm/dlm_internal.h
@@ -245,6 +245,7 @@ struct dlm_lkb {
245 245
246 int8_t lkb_wait_type; /* type of reply waiting for */ 246 int8_t lkb_wait_type; /* type of reply waiting for */
247 int8_t lkb_wait_count; 247 int8_t lkb_wait_count;
248 int lkb_wait_nodeid; /* for debugging */
248 249
249 struct list_head lkb_idtbl_list; /* lockspace lkbtbl */ 250 struct list_head lkb_idtbl_list; /* lockspace lkbtbl */
250 struct list_head lkb_statequeue; /* rsb g/c/w list */ 251 struct list_head lkb_statequeue; /* rsb g/c/w list */
@@ -254,6 +255,7 @@ struct dlm_lkb {
254 struct list_head lkb_ownqueue; /* list of locks for a process */ 255 struct list_head lkb_ownqueue; /* list of locks for a process */
255 struct list_head lkb_time_list; 256 struct list_head lkb_time_list;
256 ktime_t lkb_timestamp; 257 ktime_t lkb_timestamp;
258 ktime_t lkb_wait_time;
257 unsigned long lkb_timeout_cs; 259 unsigned long lkb_timeout_cs;
258 260
259 struct dlm_callback lkb_callbacks[DLM_CALLBACKS_SIZE]; 261 struct dlm_callback lkb_callbacks[DLM_CALLBACKS_SIZE];