Re: [PATCH 2/2] add rcu_assign_index() if ever needed

2008-02-14 Thread Paul E. McKenney
On Thu, Feb 14, 2008 at 09:02:09AM +0530, Gautham R Shenoy wrote: On Wed, Feb 13, 2008 at 02:05:15PM -0800, Paul E. McKenney wrote: Hello again! This is a speculative patch that as far as I can tell is not yet required. If anyone applies RCU to a data structure allocated out of an array,

Re: [PATCH 2/2] add rcu_assign_index() if ever needed

2008-02-14 Thread Randy Dunlap
On Wed, 13 Feb 2008 14:05:15 -0800 Paul E. McKenney wrote: Hello again! This is a speculative patch that as far as I can tell is not yet required. If anyone applies RCU to a data structure allocated out of an array, using array indexes in place of pointers to link the array elements

Re: [PATCH 2/2] add rcu_assign_index() if ever needed

2008-02-14 Thread Paul E. McKenney
On Thu, Feb 14, 2008 at 09:24:27AM -0800, Randy Dunlap wrote: On Wed, 13 Feb 2008 14:05:15 -0800 Paul E. McKenney wrote: Hello again! This is a speculative patch that as far as I can tell is not yet required. If anyone applies RCU to a data structure allocated out of an array, using

[PATCH 2/2] add rcu_assign_index() if ever needed

2008-02-13 Thread Paul E. McKenney
Hello again! This is a speculative patch that as far as I can tell is not yet required. If anyone applies RCU to a data structure allocated out of an array, using array indexes in place of pointers to link the array elements together, then the rcu_assign_index() function in this patch will be

Re: [PATCH 2/2] add rcu_assign_index() if ever needed

2008-02-13 Thread Andrew Morton
On Thu, 14 Feb 2008 09:02:09 +0530 Gautham R Shenoy [EMAIL PROTECTED] wrote: /** + * rcu_assign_index - assign (publicize) a index of a newly + * initialized array elementg that will be dereferenced by RCU I hope Andrew got that one while porting against