Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-16 Thread Paul E. McKenney
On Fri, Apr 12, 2013 at 10:56:27AM +0800, Lai Jiangshan wrote: > On 04/12/2013 01:04 AM, Sebastian Andrzej Siewior wrote: > > * Lai Jiangshan | 2013-04-09 09:09:56 [+0800]: > > > >> If the percpu array can be defined in __SRCU_STRUCT_INIT(), > >> I'm happy to expose it. but it is not currently. >

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-16 Thread Paul E. McKenney
On Fri, Apr 12, 2013 at 10:56:27AM +0800, Lai Jiangshan wrote: On 04/12/2013 01:04 AM, Sebastian Andrzej Siewior wrote: * Lai Jiangshan | 2013-04-09 09:09:56 [+0800]: If the percpu array can be defined in __SRCU_STRUCT_INIT(), I'm happy to expose it. but it is not currently. I have

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-11 Thread Lai Jiangshan
On 04/12/2013 01:04 AM, Sebastian Andrzej Siewior wrote: > * Lai Jiangshan | 2013-04-09 09:09:56 [+0800]: > >> If the percpu array can be defined in __SRCU_STRUCT_INIT(), >> I'm happy to expose it. but it is not currently. > > I have no idea how to achieve this. > >> Why crypto can't use boot

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-11 Thread Sebastian Andrzej Siewior
* Lai Jiangshan | 2013-04-09 09:09:56 [+0800]: >If the percpu array can be defined in __SRCU_STRUCT_INIT(), >I'm happy to expose it. but it is not currently. I have no idea how to achieve this. >Why crypto can't use boot time initialization? It would require something like this: ---

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-11 Thread Sebastian Andrzej Siewior
* Lai Jiangshan | 2013-04-09 09:09:56 [+0800]: If the percpu array can be defined in __SRCU_STRUCT_INIT(), I'm happy to expose it. but it is not currently. I have no idea how to achieve this. Why crypto can't use boot time initialization? It would require something like this: ---

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-11 Thread Lai Jiangshan
On 04/12/2013 01:04 AM, Sebastian Andrzej Siewior wrote: * Lai Jiangshan | 2013-04-09 09:09:56 [+0800]: If the percpu array can be defined in __SRCU_STRUCT_INIT(), I'm happy to expose it. but it is not currently. I have no idea how to achieve this. Why crypto can't use boot time

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-08 Thread Lai Jiangshan
On 04/08/2013 06:03 PM, Sebastian Andrzej Siewior wrote: > On 04/05/2013 09:21 AM, Lai Jiangshan wrote: >> Hi, Sebastian > > Hi Lai, > >> I don't want to expose __SRCU_STRUCT_INIT(), >> due to it has strong coupling with the percpu array. >> >> I hope other structure which uses SRCU should use

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-08 Thread Sebastian Andrzej Siewior
On 04/05/2013 09:21 AM, Lai Jiangshan wrote: > Hi, Sebastian Hi Lai, > I don't want to expose __SRCU_STRUCT_INIT(), > due to it has strong coupling with the percpu array. > > I hope other structure which uses SRCU should use init_srcu_struct(). I need a static initialization for this kind.

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-08 Thread Sebastian Andrzej Siewior
On 04/05/2013 09:21 AM, Lai Jiangshan wrote: Hi, Sebastian Hi Lai, I don't want to expose __SRCU_STRUCT_INIT(), due to it has strong coupling with the percpu array. I hope other structure which uses SRCU should use init_srcu_struct(). I need a static initialization for this kind. Patch #3

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-08 Thread Lai Jiangshan
On 04/08/2013 06:03 PM, Sebastian Andrzej Siewior wrote: On 04/05/2013 09:21 AM, Lai Jiangshan wrote: Hi, Sebastian Hi Lai, I don't want to expose __SRCU_STRUCT_INIT(), due to it has strong coupling with the percpu array. I hope other structure which uses SRCU should use

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-05 Thread Lai Jiangshan
On 03/19/2013 10:16 PM, Sebastian Andrzej Siewior wrote: > There are macros for static initializer for the three out of four > possible notifier types, that are: > ATOMIC_NOTIFIER_HEAD() > BLOCKING_NOTIFIER_HEAD() > RAW_NOTIFIER_HEAD() > > This patch provides a static

Re: [PATCH 2/3] kernel/SRCU: provide a static initializer

2013-04-05 Thread Lai Jiangshan
On 03/19/2013 10:16 PM, Sebastian Andrzej Siewior wrote: There are macros for static initializer for the three out of four possible notifier types, that are: ATOMIC_NOTIFIER_HEAD() BLOCKING_NOTIFIER_HEAD() RAW_NOTIFIER_HEAD() This patch provides a static initilizer for

[PATCH 2/3] kernel/SRCU: provide a static initializer

2013-03-19 Thread Sebastian Andrzej Siewior
There are macros for static initializer for the three out of four possible notifier types, that are: ATOMIC_NOTIFIER_HEAD() BLOCKING_NOTIFIER_HEAD() RAW_NOTIFIER_HEAD() This patch provides a static initilizer for the forth type to make it complete. Signed-off-by:

[PATCH 2/3] kernel/SRCU: provide a static initializer

2013-03-19 Thread Sebastian Andrzej Siewior
There are macros for static initializer for the three out of four possible notifier types, that are: ATOMIC_NOTIFIER_HEAD() BLOCKING_NOTIFIER_HEAD() RAW_NOTIFIER_HEAD() This patch provides a static initilizer for the forth type to make it complete. Signed-off-by: