wfcqueue: Fix lock and unlock functions
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 16 Nov 2012 03:07:03 +0000 (22:07 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Nov 2012 03:07:03 +0000 (22:07 -0500)
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 <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wfcqueue.c

index 3474ee0819a10943ef52b32853210418a5ec3d38..90b810e23494000ae6620f0d1505b8d7247a5f10 100644 (file)
@@ -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(
This page took 0.024971 seconds and 4 git commands to generate.