Re: [PATCH 7/9] Make idr_remove rcu-safe

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <Nadia.Derbey@...>
Cc: <manfred@...>, <paulmck@...>, <lnxninja@...>, <linux-kernel@...>, <efault@...>, <akpm@...>
Date: Wednesday, May 14, 2008 - 3:59 pm

On Wed 07 May at 13:36:00 +0200 Nadia.Derbey@bull.net said:

Does idr_remove_all() need an rcu_dereference() in the loop preceeding the
above, where it does:

                while (n > IDR_BITS && p) {
                        n -= IDR_BITS;
                        *paa++ = p;
     ---->              p = p->ary[(id >> n) & IDR_MASK];
                }

idr_replace() also has that loop without rcu_derefernce, but I _think_
I see why that one should be ok.  At least there the comment is clear
that locking at a higher level should be happening.  And then
idr_remove_all() is almost unused and it looks like it is only in
serialized places.

Otherwise, thanks for redoing...This patch set was much easier to digest
and looks reasonable to me.

I've been having some machine issues, but hope to give this patch set a run
still on a 128way machine and mainline to provide some additional
datapoints.

-- 
Tim Pepper  <lnxninja@linux.vnet.ibm.com>
IBM Linux Technology Center
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 7/9] Make idr_remove rcu-safe, , (Wed May 7, 7:36 am)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Paul E. McKenney, (Fri May 30, 4:24 am)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Tim Pepper, (Wed May 14, 3:59 pm)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Nadia Derbey, (Thu May 15, 3:40 am)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Tim Pepper, (Tue May 20, 1:29 am)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Nadia Derbey, (Tue May 20, 3:03 am)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Tim Pepper, (Tue May 20, 12:26 pm)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Tim Pepper, (Tue May 20, 1:35 am)
Re: [PATCH 7/9] Make idr_remove rcu-safe, Rik van Riel, (Thu May 8, 2:02 pm)