wfcqueue: Fix lock and unlock functions
A message that is not in the archive (sent off-list or not yet received): [email protected]
Mathieu Desnoyers
AppliedQuoted 6 lines · * Paul E. McKenney ([email protected]) wrote:
The current implementation of
cds_wfcq_dequeue_lock()andcds_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 <[email protected]>
Good catch !!
Merged, thanks!
Mathieu
Quoted 22 lines
wfcqueue.c +2
-2@@ -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(
Signature · 4 lines
Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com