Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jmerkey@...>
Cc: <paulmck@...>, Peter Zijlstra <peterz@...>, <linux-kernel@...>, Linus Torvalds <torvalds@...>, Nick Piggin <nickpiggin@...>, David Howells <dhowells@...>
Date: Thursday, August 21, 2008 - 11:22 am

jmerkey@wolfmountaingroup.com wrote:
[Stefan Richter wrote]
...
...

Regarding rlock->count, I stand corrected:  It works correctly if the
debug_lock()...debug_unlock() region can be entered by up to two
contexts and if the second one to enter cannot be preempted by the first
one.

However, since these regions are enclosed in preempt_disable/enable and
since the first one to grab the rlock->lock keeps local interrupts
disabled until debug_unlock() or even longer, there is always only a
single context in the debug_lock()...debug_unlock() region --- which
defeats the whole purpose of the rlock_t.  Or what am I missing /now/?

Independently of this, you cannot use rlock->flags like you currently
do.  spin_trylock_irqsave would overwrite the flags of CPU A by the
flags of CPU B, making the results of spin_unlock_irqrestore in
debug_unlock unpredictable.
-- 
Stefan Richter
-=====-==--- =--- =-=-=
http://arcgraph.de/sr/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 12:43 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 12:48 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6...., Stefan Richter, (Thu Aug 21, 10:02 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6...., Stefan Richter, (Thu Aug 21, 11:22 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger , Nick Piggin, (Thu Aug 21, 9:37 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-r..., Jeremy Fitzhardinge, (Thu Aug 21, 5:06 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-r..., Jeremy Fitzhardinge, (Thu Aug 21, 5:21 pm)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 10:30 am)
Re: [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc..., Paul E. McKenney, (Thu Aug 21, 10:53 am)