Re: [patch 1/5] Debugobjects transition check

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mathieu Desnoyers
Date: Wednesday, March 31, 2010 - 7:27 am

* Thomas Gleixner (tglx@linutronix.de) wrote:

For the moment, it only warns. I have not seen the need for a fixup callback
yet. It might become useful at some point, but I prefer to proceed
incrementally. This kind of callback could become quite big too, because it
would have to deal with transitions "from each to each" states of the system,
with, in the worse case scenario, different fixups for each situation.

Just for the specific case of "do RCU batch", when detecting that a non-queued
rcu head is there for execution, there are a few cases to consider:

- List corruption
  - Appears in two lists.
  - Appears in the same list twice.
- Race (two threads reading the list at the same time).
- ...

I am probably forgetting about others. So one way to fixup this would be not to
execute the callback, but even then, the lists might be corrupted. So it's not
at all clear to me if we can do much better than reporting the inconsistency
without increasing intrusiveness. But maybe I just need more imagination. ;)

Thanks,

Mathieu


-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 0/5] RCU head debug (v5), Mathieu Desnoyers, (Mon Mar 29, 7:34 am)
[patch 1/5] Debugobjects transition check, Mathieu Desnoyers, (Mon Mar 29, 7:34 am)
[patch 2/5] rcu head introduce rcu head init on stack, Mathieu Desnoyers, (Mon Mar 29, 7:34 am)
[patch 3/5] remove all rcu head initializations, except on ..., Mathieu Desnoyers, (Mon Mar 29, 7:34 am)
[patch 4/5] rcu head remove init, Mathieu Desnoyers, (Mon Mar 29, 7:34 am)
[patch 5/5] tree/tiny rcu: Add debug RCU head objects (v5), Mathieu Desnoyers, (Mon Mar 29, 7:34 am)
[PATCH] rcu head debug consider on stack fixup, Mathieu Desnoyers, (Mon Mar 29, 8:14 am)
Re: [patch 1/5] Debugobjects transition check, Thomas Gleixner, (Tue Mar 30, 9:21 am)
Re: [patch 1/5] Debugobjects transition check, Mathieu Desnoyers, (Wed Mar 31, 6:31 am)
Re: [patch 1/5] Debugobjects transition check, Thomas Gleixner, (Wed Mar 31, 6:51 am)
Re: [patch 1/5] Debugobjects transition check, Mathieu Desnoyers, (Wed Mar 31, 7:27 am)
Re: [patch 1/5] Debugobjects transition check, Thomas Gleixner, (Tue Apr 6, 1:15 am)
[patch 1/5] Debugobjects transition check (updated changelog), Mathieu Desnoyers, (Tue Apr 6, 5:53 am)
Re: [patch 1/5] Debugobjects transition check (updated cha ..., Paul E. McKenney, (Thu Apr 15, 11:37 am)