From 7d214e5620621ebd67fd7003b9f23d292ac08792 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 13 Nov 2014 16:17:00 -0500 Subject: [PATCH] Fix: call rcu should call internal RCU API 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 --- urcu-call-rcu-impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h index c0298d2..51ee91f 100644 --- a/urcu-call-rcu-impl.h +++ b/urcu-call-rcu-impl.h @@ -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(); } /* -- 2.34.1