summaryrefslogtreecommitdiffstats
path: root/fs/dlm/dlm_internal.h
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-08-09 11:20:15 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-09 17:32:07 -0400
commit4a99c3d9d6663085e28bc7ac8dae1e985c5a6174 (patch)
treecf96b33aaa41411f7c5a5a5ece5862c4d672711f /fs/dlm/dlm_internal.h
parentfaa0f2677287a2e7ae796db8b73618ec43715e94 (diff)
downloadblackbird-op-linux-4a99c3d9d6663085e28bc7ac8dae1e985c5a6174.tar.gz
blackbird-op-linux-4a99c3d9d6663085e28bc7ac8dae1e985c5a6174.zip
[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 {
struct mutex ls_requestqueue_mutex;
char *ls_recover_buf;
int ls_recover_nodeid; /* for debugging */
+ uint64_t ls_rcom_seq;
struct list_head ls_recover_list;
spinlock_t ls_recover_list_lock;
int ls_recover_list_count;
OpenPOWER on IntegriCloud