From: Paul E. McKenney Date: Fri, 16 Nov 2012 03:07:03 +0000 (-0500) Subject: wfcqueue: Fix lock and unlock functions X-Git-Tag: v0.8.0~153 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=852a17ad88c691a96a67754bce91826b33877812;p=urcu.git wfcqueue: Fix lock and unlock functions The current implementation of cds_wfcq_dequeue_lock() and cds_wfcq_dequeue_unlock() entails mutually assured recursion. Redirect to _cds_wfcq_dequeue_lock() and _cds_wfcq_dequeue_unlock(), respectively. Signed-off-by: Paul E. McKenney Signed-off-by: Mathieu Desnoyers --- diff --git a/wfcqueue.c b/wfcqueue.c index 3474ee0..90b810e 100644 --- a/wfcqueue.c +++ b/wfcqueue.c @@ -57,13 +57,13 @@ void cds_wfcq_enqueue(struct cds_wfcq_head *head, void cds_wfcq_dequeue_lock(struct cds_wfcq_head *head, struct cds_wfcq_tail *tail) { - cds_wfcq_dequeue_lock(head, tail); + _cds_wfcq_dequeue_lock(head, tail); } void cds_wfcq_dequeue_unlock(struct cds_wfcq_head *head, struct cds_wfcq_tail *tail) { - cds_wfcq_dequeue_unlock(head, tail); + _cds_wfcq_dequeue_unlock(head, tail); } struct cds_wfcq_node *cds_wfcq_dequeue_blocking(