Skip to contentSkip to conversation

Cluster Project branch, RHEL47, updated. gfs-kernel_2_6_9_76-81-g634f4f5

Cluster-devel [email protected] 1 participant 1 message Jun 20, 2008

lore
Share & tools
lore
#0 lore raw

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=634f4f53b00c2c1ee49e02773e44d3352043f1c3

The branch, RHEL47 has been updated

       via  634f4f53b00c2c1ee49e02773e44d3352043f1c3 (commit)
      from  a174220359c48ad23e7474f71e40bfc5fedd3906 (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit 634f4f53b00c2c1ee49e02773e44d3352043f1c3

Author: Jonathan Brassow <[email protected]>
Date:   Wed Jun 18 10:08:06 2008 -0500

dm-cmirror.ok: Fix for bug 450939

Must reset in_sync variable upon resume.

-----------------------------------------------------------------------

Summary of changes:

 cmirror-kernel/src/dm-cmirror-client.c |    3 +-
 cmirror-kernel/src/dm-cmirror-server.c |   46 +++++++++++++++++++------------
 2 files changed, 30 insertions(+), 19 deletions(-)
cmirror-kernel/src/dm-cmirror-client.c +2 -1
index 43fe5ef..79794c2 100644
@@ -849,6 +849,7 @@ static int cluster_resume(struct dirty_log *log){
 	DMDEBUG("cluster_resume: Setting recovery_halted = 0");
 	lc->recovery_halted = 0;
 	atomic_set(&lc->suspended, 0);
+	atomic_set(&lc->in_sync,0);
 
 	return 0;
 }
@@ -1186,7 +1187,7 @@ static region_t cluster_get_sync_count(struct dirty_log *log)
 	struct log_c *lc = (struct log_c *) log->context;
 
 	if (atomic_read(&lc->suspended)) {
-		return (atomic_read(&lc->in_sync)) ? lc->region_count : 0;
+		return (atomic_read(&lc->in_sync) == 1) ? lc->region_count : 0;
 	}
 
 	/* Try to get sync count up to five times */
cmirror-kernel/src/dm-cmirror-server.c +28 -18

107 lines not on this page · raw message

hooks/post-receive
--
Cluster Project