|
@@ -30,6 +30,7 @@
|
|
* This is only for internal list manipulation where we know
|
|
* This is only for internal list manipulation where we know
|
|
* the prev/next entries already!
|
|
* the prev/next entries already!
|
|
*/
|
|
*/
|
|
|
|
+#ifndef CONFIG_DEBUG_LIST
|
|
static inline void __list_add_rcu(struct list_head *new,
|
|
static inline void __list_add_rcu(struct list_head *new,
|
|
struct list_head *prev, struct list_head *next)
|
|
struct list_head *prev, struct list_head *next)
|
|
{
|
|
{
|
|
@@ -38,6 +39,10 @@ static inline void __list_add_rcu(struct list_head *new,
|
|
rcu_assign_pointer(list_next_rcu(prev), new);
|
|
rcu_assign_pointer(list_next_rcu(prev), new);
|
|
next->prev = new;
|
|
next->prev = new;
|
|
}
|
|
}
|
|
|
|
+#else
|
|
|
|
+extern void __list_add_rcu(struct list_head *new,
|
|
|
|
+ struct list_head *prev, struct list_head *next);
|
|
|
|
+#endif
|
|
|
|
|
|
/**
|
|
/**
|
|
* list_add_rcu - add a new entry to rcu-protected list
|
|
* list_add_rcu - add a new entry to rcu-protected list
|
|
@@ -108,7 +113,7 @@ static inline void list_add_tail_rcu(struct list_head *new,
|
|
*/
|
|
*/
|
|
static inline void list_del_rcu(struct list_head *entry)
|
|
static inline void list_del_rcu(struct list_head *entry)
|
|
{
|
|
{
|
|
- __list_del(entry->prev, entry->next);
|
|
|
|
|
|
+ __list_del_entry(entry);
|
|
entry->prev = LIST_POISON2;
|
|
entry->prev = LIST_POISON2;
|
|
}
|
|
}
|
|
|
|
|