Cluster Project branch, RHEL47, updated. gfs-kernel_2_6_9_76-82-g0949bb8
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".
The branch, RHEL47 has been updated
via 0949bb8d8f145a8fe4121cf530d500d3125ab426 (commit)
from 634f4f53b00c2c1ee49e02773e44d3352043f1c3 (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 0949bb8d8f145a8fe4121cf530d500d3125ab426
Author: Jonathan Brassow <[email protected]> Date: Thu Jun 26 16:32:51 2008 -0500
dm-cmirror.ko: Fix for bug 450939, and other minor cleanups
- If a write-recovery conflict is detected, halt recovery rather than calling BUG() (the fix bug 450939)
- Minor code style cleanups
-----------------------------------------------------------------------
Summary of changes:
cmirror-kernel/src/dm-cmirror-client.c | 81 ++++++++++++--------------- cmirror-kernel/src/dm-cmirror-server.c | 95 ++++++++++++++++++-------------- 2 files changed, 90 insertions(+), 86 deletions(-)
cmirror-kernel/src/dm-cmirror-client.c +37 -44
@@ -311,11 +311,10 @@ static int _consult_server(struct log_c *lc, region_t region, request_count++; lr =kmalloc (sizeof (struct log_request ),GFP_NOFS ); -if (!lr){ +if (!lr) {BUG (); error = -ENOMEM ; - *retry =1 ; - goto fail; + goto retry; }memset (lr,0 ,sizeof (struct log_request ));
@@ -344,10 +343,9 @@ static int _consult_server(struct log_c *lc, region_t region, saddr_in.sin_family =AF_INET ; saddr_in.sin_port =CLUSTER_LOG_PORT ; -if (!(saddr_in.sin_addr.s_addr =nodeid_to_ipaddr (lc->server_id))){ +if (!(saddr_in.sin_addr.s_addr =nodeid_to_ipaddr (lc->server_id))) { error = -ENXIO ; - *retry =1 ; - goto fail; + goto retry; } msg.msg_name = &saddr_in; msg.msg_namelen =sizeof (saddr_in);
@@ -362,7 +360,7 @@ static int _consult_server(struct log_c *lc, region_t region,set_fs (fs); -if (len <sizeof (struct log_request )){ +if (len <sizeof (struct log_request )) {DMWARN ("unable to send log request to server" ); error = -EBADE ; goto fail;
@@ -379,14 +377,13 @@ rerecv: sizeof(struct log_request), 0, 15);set_fs (fs); -if (len <=0 ){ +if (len <=0 ) {/* ATTENTION -- what do we do with this ? */ DMWARN ("Error listening for server(%u) response for %s: %d" , lc->server_id, lc->uuid + (strlen (lc->uuid) -8 ), len); error = len; - *retry =1 ; seq++; - goto fail; + goto retry; }if (seq != lr->lr_seq) {
@@ -400,9 +397,8 @@ rerecv: }DMERR (" Seq# mismatch: Must try to resend request, %s" ,RQ_STRING (type)); error = -EBADE ; - *retry =1 ; seq++; - goto fail; + goto retry; } seq++;
@@ -410,8 +406,7 @@ rerecv:DMERR ("Got incorrect message type back: %s/%s" ,RQ_STRING (type),RQ_STRING (lr->lr_type)); error = -EBADE ; - *retry =1 ; - goto fail; + goto retry; }if (memcmp (lc->uuid, lr->lr_uuid,MAX_NAME_LEN )) {
@@ -419,54 +414,52 @@ rerecv:DMERR (" Expected UUID: %s" , lc->uuid);DMERR (" Recieved UUID: %s" , lr->lr_uuid); error = -EBADE ; - *retry =1 ; - goto fail; + goto retry; } -if (lr->u.lr_int_rtn == -EAGAIN ){ -DMWARN ("Server (%u), request type %d, -EAGAIN." -" Mirror suspended?" , +if (lr->u.lr_int_rtn == -EAGAIN ) { +DMWARN ("Server (%u), request type %d, -EAGAIN." , lc->server_id, lr->lr_type); - *retry =1 ; - goto fail; + goto retry; }if (lr->u.lr_int_rtn == -ENXIO ) {DMDEBUG ("Server (%u) says it no longer controls this log (%s)" , lc->server_id, lc->uuid + (strlen (lc->uuid) -8 )); lc->server_id =0xDEAD ; - *retry =1 ; - goto fail; + goto retry; } -if (result) +if (result) *result = lr->u.lr_region_rtn; error = lr->u.lr_int_rtn;kfree (lr);return error; - fail: -if (*retry){ - request_retry_count++; -if (!(request_retry_count &0x1F )){ -DMINFO ("Clustered mirror retried requests :: %u of %u (%u%%)" , - request_retry_count, - request_count, -dm_div_up (request_retry_count*100 , request_count)); -DMDEBUG ("Last request:" ); -DMDEBUG (" - my_id :: %u" , my_id); -DMDEBUG (" - server :: %u" , lc->server_id); -DMDEBUG (" - log uuid:: %s (%s)" , - lc->uuid + (strlen (lc->uuid) -8 ), -atomic_read (&lc->suspended) ?"suspended" :"active" ); -DMDEBUG (" - request :: %s" ,RQ_STRING (type)); -DMDEBUG (" - error :: %d" , error); -DMINFO ("Too many retries, attempting to re-establish server connection." ); - lc->server_id =0xDEAD ; - } + + retry: + *retry =1 ; + request_retry_count++; +if (!(request_retry_count &0x1F )) { +DMINFO ("Clustered mirror retried requests :: %u of %u (%u%%)" , + request_retry_count, + request_count, +dm_div_up (request_retry_count*100 , request_count)); +DMDEBUG ("Last request:" ); +DMDEBUG (" - my_id :: %u" , my_id); +DMDEBUG (" - server :: %u" , lc->server_id); +DMDEBUG (" - log uuid:: %s (%s)" , + lc->uuid + (strlen (lc->uuid) -8 ), +atomic_read (&lc->suspended) ?"suspended" :"active" ); +DMDEBUG (" - request :: %s" ,RQ_STRING (type)); +DMDEBUG (" - error :: %d" , error); +DMINFO ("Too many retries, attempting to re-establish server connection." ); + lc->server_id =0xDEAD ; } -if (lr)kfree (lr); +fail: +if (lr) +kfree (lr);return error; }
cmirror-kernel/src/dm-cmirror-server.c +53 -42
155 lines not on this page · raw message
hooks/post-receive
--
Cluster Project