Fix: call rcu should call internal RCU API
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Nov 2014 21:17:00 +0000 (16:17 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 28 Apr 2015 18:46:24 +0000 (14:46 -0400)
Because call rcu implementation is included within RCU flavors, calling
the RCU API goes through the API for non-LGPL code (this is a special
case for the RCU flavor implementation c file). Since this is clearly
LGPL code, we can use the inline versions.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-call-rcu-impl.h

index c0298d24b6a732ba7979fa3aa740b4085e1ccb45..51ee91ffd1ef87e0e8a8e76ff00b64d6dd24c660 100644 (file)
@@ -622,12 +622,12 @@ void call_rcu(struct rcu_head *head,
        cds_wfq_node_init(&head->next);
        head->func = func;
        /* Holding rcu read-side lock across use of per-cpu crdp */
-       rcu_read_lock();
+       _rcu_read_lock();
        crdp = get_call_rcu_data();
        cds_wfq_enqueue(&crdp->cbs, &head->next);
        uatomic_inc(&crdp->qlen);
        wake_call_rcu_thread(crdp);
-       rcu_read_unlock();
+       _rcu_read_unlock();
 }
 
 /*
This page took 0.0265 seconds and 4 git commands to generate.