On Thu, 2012-03-08 at 15:01 -0500, Steven Rostedt wrote: > > What I was hinting at was that the spin_lock() can boost, but it could > also fail if there was a deadlock detected, and it wouldn't cause the > system to hang. Right, that's spin_deadlock() ;-) And you can in fact write spin_trydeadlock() as: int spin_trydeadlock(spinlock_t *lock) { return spin_deadlock(lock) != -EDEADLK; } The advantage of introducing spin_trydeadlock() is that you can merge it upstream (modulo naming) and the !RT code won't change at all. IIRC tglx said there were more sites than just the dcache that did this inverse lock order trylock game. Seems we're agreeing more than disagreeing.. anyway, if you care to give it a go.. worst that can happen is that you'll get as big a mess as tglx got :-) -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html