Re: [PATCH] smp_call_function_many SMP race

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Monday, May 3, 2010 - 7:24 am

On Tue, 2010-03-23 at 22:15 +1100, Anton Blanchard wrote:

But the atomic_dec_return() implies a mb, which is before
list_del_rcu(), also, the next enqueue will have a wmb in
list_rcu_add(), so it seems to me that if we issue an rmb it would be
impossible to see a !zero ref of the previous enlisting.


We could make this an actual atomic instruction of course..



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] smp_call_function_many SMP race, Anton Blanchard, (Tue Mar 23, 4:15 am)
Re: [PATCH] smp_call_function_many SMP race, Peter Zijlstra, (Tue Mar 23, 5:26 am)
Re: [PATCH] smp_call_function_many SMP race, Paul E. McKenney, (Tue Mar 23, 8:33 am)
Re: [PATCH] smp_call_function_many SMP race, Peter Zijlstra, (Tue Mar 23, 8:49 am)
Re: [PATCH] smp_call_function_many SMP race, Paul E. McKenney, (Tue Mar 23, 9:41 am)
Re: [PATCH] smp_call_function_many SMP race, Anton Blanchard, (Tue Mar 23, 2:31 pm)
Re: [PATCH] smp_call_function_many SMP race, Peter Zijlstra, (Mon May 3, 7:24 am)