projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
QSBR: add missing wakeups in synchronize_rcu code
[urcu.git]
/
urcu-qsbr.c
diff --git
a/urcu-qsbr.c
b/urcu-qsbr.c
index 5e4348449ca9183b61bf1cbc6a041a549f784c2b..1dc99792d7a49f2f6f3614693e34cde239312bfb 100644
(file)
--- a/
urcu-qsbr.c
+++ b/
urcu-qsbr.c
@@
-218,8
+218,11
@@
void synchronize_rcu(void)
* our own quiescent state. This allows using synchronize_rcu()
* in threads registered as readers.
*/
* our own quiescent state. This allows using synchronize_rcu()
* in threads registered as readers.
*/
- if (was_online)
+ if (was_online)
{
CMM_STORE_SHARED(rcu_reader.ctr, 0);
CMM_STORE_SHARED(rcu_reader.ctr, 0);
+ cmm_smp_mb(); /* write rcu_reader.ctr before read futex */
+ wake_up_gp();
+ }
mutex_lock(&rcu_gp_lock);
mutex_lock(&rcu_gp_lock);
@@
-277,8
+280,11
@@
void synchronize_rcu(void)
* in threads registered as readers.
*/
cmm_smp_mb();
* in threads registered as readers.
*/
cmm_smp_mb();
- if (was_online)
+ if (was_online)
{
CMM_STORE_SHARED(rcu_reader.ctr, 0);
CMM_STORE_SHARED(rcu_reader.ctr, 0);
+ cmm_smp_mb(); /* write rcu_reader.ctr before read futex */
+ wake_up_gp();
+ }
mutex_lock(&rcu_gp_lock);
if (cds_list_empty(®istry))
mutex_lock(&rcu_gp_lock);
if (cds_list_empty(®istry))
This page took
0.022866 seconds
and
4
git commands to generate.