Re: [PATCH 1/10] Add generic helpers for arch IPI function calls

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Friday, May 30, 2008 - 4:24 am

On Thu, May 29, 2008 at 10:58:15AM +0200, Jens Axboe wrote:

Looks much improved!!!  A few suggestions for header comments, and
there appears to be a leftover memory barrier that should now be
removed.  With these changes:

Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>


Suggest adding comment to the effect that @wait will be implicitly set
upon memory-allocation failure.


Suggest adding comment to the effect that @wait will be implicitly set
upon memory-allocation failure.

Also, isn't it necessary to call this function with preemption disabled?
If so, this should be commented as well.


Given that all call_function_data structs either get run through
call_rcu() or are waited for, I believe we no longer need the above
smp_wmb().  The only reason we needed it before was that there was the
possibility of a call_function_data struct being reused while a reader
was still referencing it.  If I understand the code, this can no longer
happen, so this memory barrier is not needed and should be removed.


Suggest adding comment to the effect that @wait will be implicitly set
upon memory-allocation failure.

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

Messages in current thread:
Re: [PATCH 2/10] x86: convert to generic helpers for IPI f ..., Jeremy Fitzhardinge, (Thu May 29, 5:12 am)
Re: [PATCH 2/10] x86: convert to generic helpers for IPI f ..., Jeremy Fitzhardinge, (Thu May 29, 6:47 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function ..., Paul E. McKenney, (Fri May 30, 4:24 am)
Re: [PATCH 0/10] Add generic helpers for arch IPI function ..., Jeremy Fitzhardinge, (Sun Jun 1, 2:52 am)
Re: [PATCH 1/10] Add generic helpers for arch IPI function ..., Jeremy Fitzhardinge, (Sun Jul 6, 10:21 am)