]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rcu: remove list_for_each_rcu()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 1 Aug 2008 21:11:05 +0000 (14:11 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 15:03:06 +0000 (17:03 +0200)
All of the in-tree uses of list_for_each_rcu() have been converted to
list_for_each_entry_rcu(), so list_for_each_rcu() can now be removed.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/RCU/checklist.txt
Documentation/RCU/whatisRCU.txt
include/linux/rculist.h

index cf5562cbe35642834f28d6fca3409dffebb5c0c4..6e253407b3dc1f83d85076dae39d405a29ec6716 100644 (file)
@@ -210,7 +210,7 @@ over a rather long period of time, but improvements are always welcome!
                number of updates per grace period.
 
 9.     All RCU list-traversal primitives, which include
-       rcu_dereference(), list_for_each_rcu(), list_for_each_entry_rcu(),
+       rcu_dereference(), list_for_each_entry_rcu(),
        list_for_each_continue_rcu(), and list_for_each_safe_rcu(),
        must be either within an RCU read-side critical section or
        must be protected by appropriate update-side locks.  RCU
index e04d643a9f57a802e59057165f719f36b5ebf5ab..96170824a717059962b85c2400491f58883f3bde 100644 (file)
@@ -786,8 +786,6 @@ RCU pointer/list traversal:
        list_for_each_entry_rcu
        hlist_for_each_entry_rcu
 
-       list_for_each_rcu               (to be deprecated in favor of
-                                        list_for_each_entry_rcu)
        list_for_each_continue_rcu      (to be deprecated in favor of new
                                         list_for_each_entry_continue_rcu)
 
index eb4443c7e05be213f49596b81b50f209923ab4da..e649bd3f2c976c3f5bed58c067c351a336403e75 100644 (file)
@@ -198,20 +198,6 @@ static inline void list_splice_init_rcu(struct list_head *list,
        at->prev = last;
 }
 
-/**
- * list_for_each_rcu   -       iterate over an rcu-protected list
- * @pos:       the &struct list_head to use as a loop cursor.
- * @head:      the head for your list.
- *
- * This list-traversal primitive may safely run concurrently with
- * the _rcu list-mutation primitives such as list_add_rcu()
- * as long as the traversal is guarded by rcu_read_lock().
- */
-#define list_for_each_rcu(pos, head) \
-       for (pos = rcu_dereference((head)->next); \
-               prefetch(pos->next), pos != (head); \
-               pos = rcu_dereference(pos->next))
-
 #define __list_for_each_rcu(pos, head) \
        for (pos = rcu_dereference((head)->next); \
                pos != (head); \