login
Header Space

 
 

Re: Using markers w/ preemptible RCU in early code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eduard - Gabriel Munteanu <eduard.munteanu@...>
Cc: Pekka Enberg <penberg@...>, <pmckenne@...>, LKML <linux-kernel@...>
Date: Friday, May 9, 2008 - 6:38 pm

* Eduard - Gabriel Munteanu (eduard.munteanu@linux360.ro) wrote:

I think call_rcu can become a problem too in that case. It is
responsible for freeing the old closure and I don't think it will be
executed if rcu or the scheduler is not active. Therefore, we should
also do something like :

if (likely(preemptible()))
   call_rcu(&entry->rcu, free_old_closure);
else
   free_old_closure(&entry->rcu);   (modulo passing the right
   parameters..)

All the synchronize_sched, cal_rcu and rcu_barriers should be changed. I
think the rcu_barriers should also have this kind of test to check for
early boot use.

Mathieu


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Using markers w/ preemptible RCU in early code, Eduard - Gabriel Munteanu..., (Fri May 9, 6:13 pm)
Re: Using markers w/ preemptible RCU in early code, Mathieu Desnoyers, (Fri May 9, 6:38 pm)
speck-geostationary