Re: [PATCH 2/3] srcu: Remove superfluous sdp->srcu_lock_count zero filling

2021-04-01 Thread Paul E. McKenney
On Fri, Apr 02, 2021 at 01:47:03AM +0200, Frederic Weisbecker wrote: > alloc_percpu() zeroes out the allocated memory. Therefore we can assume > the whole struct srcu_data to be clear after calling it, just like after > a static initialization. No need for a special treatment in the dynamic >

[PATCH 2/3] srcu: Remove superfluous sdp->srcu_lock_count zero filling

2021-04-01 Thread Frederic Weisbecker
alloc_percpu() zeroes out the allocated memory. Therefore we can assume the whole struct srcu_data to be clear after calling it, just like after a static initialization. No need for a special treatment in the dynamic allocation case. Signed-off-by: Frederic Weisbecker Cc: Boqun Feng Cc: Lai