Re: [PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Paul E. McKenney
On Thu, Apr 11, 2019 at 10:14:22PM -0400, Joel Fernandes wrote: > On Thu, Apr 11, 2019 at 02:31:55PM -0700, Paul E. McKenney wrote: > > On Thu, Apr 11, 2019 at 04:24:21PM -0400, Joel Fernandes (Google) wrote: > > > Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in > > >

Re: [PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Joel Fernandes
On Thu, Apr 11, 2019 at 02:31:55PM -0700, Paul E. McKenney wrote: > On Thu, Apr 11, 2019 at 04:24:21PM -0400, Joel Fernandes (Google) wrote: > > Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in > > modules"), modules that call DEFINE_{STATIC,}SRCU will have a new array > > of

Re: [PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Paul E. McKenney
On Thu, Apr 11, 2019 at 04:24:21PM -0400, Joel Fernandes (Google) wrote: > Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in > modules"), modules that call DEFINE_{STATIC,}SRCU will have a new array > of srcu_struct pointers, which is used by srcu code to initialize and > clean

[PATCH] module: Make srcu_struct ptr array as read-only

2019-04-11 Thread Joel Fernandes (Google)
Since commit title ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules"), modules that call DEFINE_{STATIC,}SRCU will have a new array of srcu_struct pointers, which is used by srcu code to initialize and clean up these structures and save valuable per-cpu reserved space. There is no