aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/dlm_internal.h
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-08-09 12:20:15 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-09 17:32:07 -0400
commit4a99c3d9d6663085e28bc7ac8dae1e985c5a6174 (patch)
treecf96b33aaa41411f7c5a5a5ece5862c4d672711f /fs/dlm/dlm_internal.h
parentfaa0f2677287a2e7ae796db8b73618ec43715e94 (diff)
[DLM] reject replies to old requests
When recoveries are aborted by other recoveries we can get replies to status or names requests that we've given up on. This can cause problems if we're making another request and receive an old reply. Add a sequence number to status/names requests and reject replies that don't match. A field already exists for the seq number that's used in other message types. Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r--fs/dlm/dlm_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h
index ec7e401133fd..da7509986699 100644
--- a/fs/dlm/dlm_internal.h
+++ b/fs/dlm/dlm_internal.h
@@ -468,6 +468,7 @@ struct dlm_ls {
468 struct mutex ls_requestqueue_mutex; 468 struct mutex ls_requestqueue_mutex;
469 char *ls_recover_buf; 469 char *ls_recover_buf;
470 int ls_recover_nodeid; /* for debugging */ 470 int ls_recover_nodeid; /* for debugging */
471 uint64_t ls_rcom_seq;
471 struct list_head ls_recover_list; 472 struct list_head ls_recover_list;
472 spinlock_t ls_recover_list_lock; 473 spinlock_t ls_recover_list_lock;
473 int ls_recover_list_count; 474 int ls_recover_list_count;