Skip to contentSkip to conversation

Cluster Project branch, RHEL5, updated. cmirror_1_1_15-150-gb291647

Cluster-devel [email protected] 1 participant 1 message Jul 18, 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=b2916471b1b7c79dba7f9624a1a148240375891f

The branch, RHEL5 has been updated

       via  b2916471b1b7c79dba7f9624a1a148240375891f (commit)
      from  705c5ceb17da0daf018c688ac478b4fae2371e3d (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 b2916471b1b7c79dba7f9624a1a148240375891f

Author: Jonathan Brassow <[email protected]>
Date:   Fri Jul 18 10:16:45 2008 -0500

dm-log-clustered: Fix bug that would cause communication problems

When an error is received from user space, the caller of the communication function is given the return code along with a parameter indicating that no data is available. However, if the error was EAGAIN, the data_size variable was still set to 0. So, when the retry was attempted and data returned from userspace, the kernel would think that there was not enough room to store the request.

Also did quite a bit of code clean-up (no functional changes) in userspace.... like a number->string translation for openAIS error codes, etc...

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

Summary of changes:

 cmirror-kernel/src/dm-clog-tfr.c |    8 +-
 cmirror/src/cluster.c            |  237 ++++++++++++++++++--------------------
 2 files changed, 117 insertions(+), 128 deletions(-)
cmirror-kernel/src/dm-clog-tfr.c +7 -1
index 95d4bd2..7932f77 100644
@@ -96,7 +96,13 @@ static int fill_pkg(struct cn_msg *msg, struct clog_tfr *tfr)
 
 		if (msg) {
 			pkg->error = -msg->ack;
-			*(pkg->data_size) = 0;
+			/*
+			 * If we are trying again, we will need to know our
+			 * storage capacity.  Otherwise, along with the
+			 * error code, we make explicit that we have no data.
+			 */
+			if (pkg->error != -EAGAIN)
+				*(pkg->data_size) = 0;
 		} else if (tfr->data_size > *(pkg->data_size)) {
 			DMERR("Insufficient space to receive package [%s]::",
 			      RQ_TYPE(tfr->request_type));
cmirror/src/cluster.c +110 -127

421 lines not on this page · raw message

hooks/post-receive
--
Cluster Project