Re: [PATCH v8 5/6] rcu/tree: segcblist: Remove redundant smp_mb()s

2020-10-26 Thread Frederic Weisbecker
65;6003;1cOn Wed, Oct 21, 2020 at 03:08:12PM -0400, Joel Fernandes (Google) wrote: > This memory barrier is not needed as rcu_segcblist_add_len() already > includes a memory barrier *before* the length of the list is updated. *before* and *after*. As you have both cases below. Thanks > >

[PATCH v8 5/6] rcu/tree: segcblist: Remove redundant smp_mb()s

2020-10-21 Thread Joel Fernandes (Google)
This memory barrier is not needed as rcu_segcblist_add_len() already includes a memory barrier *before* the length of the list is updated. Same reasoning for rcu_segcblist_enqueue(). Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/rcu_segcblist.c | 1 - kernel/rcu/tree.c | 1 -