Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 713844 Details for
Bug 907894
CPG: Corosync can duplicate and/or lost messages - Multiple nodes problems
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch - part 4 - Fix race for sending_allowed
2013-03-13-0006-Fix-race-for-sending_allowed.patch (text/plain), 1.42 KB, created by
Jan Friesse
on 2013-03-21 13:29:47 UTC
(
hide
)
Description:
Proposed patch - part 4 - Fix race for sending_allowed
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2013-03-21 13:29:47 UTC
Size:
1.42 KB
patch
obsolete
>From bd59630ee4943cdd30a87b6f0cfad9e3baa34b15 Mon Sep 17 00:00:00 2001 >From: Jan Friesse <jfriesse@redhat.com> >Date: Wed, 13 Mar 2013 12:15:11 +0100 >Subject: [PATCH 6/6] Fix race for sending_allowed > >Sending_allowed use sync_in_process. If sync_in process is set in the >middle of sending_allowed and api->handler_fn_get, results are >unpredictable. Solution is to enlarge lock. > >Signed-off-by: Jan Friesse <jfriesse@redhat.com> >--- > exec/coroipcs.c | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/exec/coroipcs.c b/exec/coroipcs.c >index 36d18a4..f3161a1 100644 >--- a/exec/coroipcs.c >+++ b/exec/coroipcs.c >@@ -703,6 +703,8 @@ static void *pthread_ipc_consumer (void *conn) > > coroipcs_refcount_inc (conn); > >+ api->serialize_lock(); >+ > send_ok = api->sending_allowed (conn_info->service, > header->id, > header, >@@ -723,9 +725,7 @@ static void *pthread_ipc_consumer (void *conn) > } else > if (send_ok) { > api->stats_increment_value (conn_info->stats_handle, "requests"); >- api->serialize_lock(); > api->handler_fn_get (conn_info->service, header->id) (conn_info, header); >- api->serialize_unlock(); > } else { > /* > * Overload, tell library to retry >@@ -740,6 +740,9 @@ static void *pthread_ipc_consumer (void *conn) > } > > api->sending_allowed_release (conn_info->sending_allowed_private_data); >+ >+ api->serialize_unlock(); >+ > coroipcs_refcount_dec (conn); > } > pthread_exit (0); >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 907894
:
693380
|
693381
|
706733
|
713841
|
713842
|
713843
| 713844 |
713855
|
754386