Cleanup: workqueue: update comments referring to call-rcu
[urcu.git] / src / workqueue.c
index 17ea835779b8bed4f4ab77fc70b0c5ba7d6ca8a3..db0c63abf711307e995b3bd5cb372f560bd83711 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "compat-getcpu.h"
 #include "urcu/wfcqueue.h"
-#include "urcu-call-rcu.h"
 #include "urcu-pointer.h"
 #include "urcu/list.h"
 #include "urcu/futex.h"
 struct urcu_workqueue {
        /*
         * We do not align head on a different cache-line than tail
-        * mainly because call_rcu callback-invocation threads use
-        * batching ("splice") to get an entire list of callbacks, which
-        * effectively empties the queue, and requires to touch the tail
-        * anyway.
+        * mainly because workqueue threads use batching ("splice") to
+        * get an entire list of callbacks, which effectively empties
+        * the queue, and requires to touch the tail anyway.
         */
        struct cds_wfcq_tail cbs_tail;
        struct cds_wfcq_head cbs_head;
@@ -244,7 +242,7 @@ static void *workqueue_thread(void *arg)
                                uatomic_dec(&workqueue->futex);
                                /*
                                 * Decrement futex before reading
-                                * call_rcu list.
+                                * urcu_work list.
                                 */
                                cmm_smp_mb();
                        } else {
@@ -258,7 +256,7 @@ static void *workqueue_thread(void *arg)
        }
        if (!rt) {
                /*
-                * Read call_rcu list before write futex.
+                * Read urcu_work list before write futex.
                 */
                cmm_smp_mb();
                uatomic_set(&workqueue->futex, 0);
@@ -309,7 +307,7 @@ struct urcu_workqueue *urcu_workqueue_create(unsigned long flags,
 
 static void wake_worker_thread(struct urcu_workqueue *workqueue)
 {
-       if (!(_CMM_LOAD_SHARED(workqueue->flags) & URCU_CALL_RCU_RT))
+       if (!(_CMM_LOAD_SHARED(workqueue->flags) & URCU_WORKQUEUE_RT))
                futex_wake_up(&workqueue->futex);
 }
 
This page took 0.022942 seconds and 4 git commands to generate.