diff options
Diffstat (limited to 'include/linux/rculist.h')
-rw-r--r-- | include/linux/rculist.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/rculist.h b/include/linux/rculist.h index 17c6b1f84a77..5ed540986019 100644 --- a/include/linux/rculist.h +++ b/include/linux/rculist.h | |||
@@ -247,10 +247,7 @@ static inline void list_splice_init_rcu(struct list_head *list, | |||
247 | * primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock(). | 247 | * primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock(). |
248 | */ | 248 | */ |
249 | #define list_entry_rcu(ptr, type, member) \ | 249 | #define list_entry_rcu(ptr, type, member) \ |
250 | ({ \ | 250 | container_of(lockless_dereference(ptr), type, member) |
251 | typeof(*ptr) __rcu *__ptr = (typeof(*ptr) __rcu __force *)ptr; \ | ||
252 | container_of((typeof(ptr))rcu_dereference_raw(__ptr), type, member); \ | ||
253 | }) | ||
254 | 251 | ||
255 | /** | 252 | /** |
256 | * Where are list_empty_rcu() and list_first_entry_rcu()? | 253 | * Where are list_empty_rcu() and list_first_entry_rcu()? |