Fix: workqueue: struct urcu_work vs rcu_head mixup
[urcu.git] / src / workqueue.c
index db0c63abf711307e995b3bd5cb372f560bd83711..6707ffe3b45e2c2226d99c3b163d4e1c820028aa 100644 (file)
@@ -221,11 +221,11 @@ static void *workqueue_thread(void *arg)
                        cbcount = 0;
                        __cds_wfcq_for_each_blocking_safe(&cbs_tmp_head,
                                        &cbs_tmp_tail, cbs, cbs_tmp_n) {
-                               struct rcu_head *rhp;
+                               struct urcu_work *uwp;
 
-                               rhp = caa_container_of(cbs,
-                                       struct rcu_head, next);
-                               rhp->func(rhp);
+                               uwp = caa_container_of(cbs,
+                                       struct urcu_work, next);
+                               uwp->func(uwp);
                                cbcount++;
                        }
                        uatomic_sub(&workqueue->qlen, cbcount);
This page took 0.022636 seconds and 4 git commands to generate.