[RFC PATCH 1/6] list, rcu: Introduce rcu version of reverse list traversal

2012-07-25 Thread Srivatsa S. Bhat
Provide a helper to traverse an RCU-protected doubly linked list in the reverse order. Also add a corresponding helper to delete entries from the linked list, which takes care to see that we don't poison either of the pointers (->prev and ->next), since it is legal to run an rcu list-traversal

[RFC PATCH 1/6] list, rcu: Introduce rcu version of reverse list traversal

2012-07-25 Thread Srivatsa S. Bhat
Provide a helper to traverse an RCU-protected doubly linked list in the reverse order. Also add a corresponding helper to delete entries from the linked list, which takes care to see that we don't poison either of the pointers (-prev and -next), since it is legal to run an rcu list-traversal