Fix: rcu: incorrect parenthesis in side_rcu_wake_up_gp
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 Nov 2022 19:13:09 +0000 (14:13 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 24 Nov 2022 19:13:09 +0000 (14:13 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/rcu.h

index 45a5eacb1706b6d1a7f403300695a9a9b1c07e30..37eaaec199a301aabe628fb65359adedfe47e10f 100644 (file)
--- a/src/rcu.h
+++ b/src/rcu.h
@@ -55,7 +55,7 @@ int futex(int32_t *uaddr, int op, int32_t val,
 static inline
 void side_rcu_wake_up_gp(struct side_rcu_gp_state *gp_state)
 {
-       if (side_unlikely(__atomic_load_n(&gp_state->futex, __ATOMIC_RELAXED)) == -1) {
+       if (side_unlikely(__atomic_load_n(&gp_state->futex, __ATOMIC_RELAXED) == -1)) {
                __atomic_store_n(&gp_state->futex, 0, __ATOMIC_RELAXED);
                /* TODO: handle futex return values. */
                (void) futex(&gp_state->futex, FUTEX_WAKE, 1, NULL, NULL, 0);
This page took 0.024441 seconds and 4 git commands to generate.