[openib-general] [PATCH] Fix potential deadlock in mthca

Ingo Molnar mingo at redhat.com
Mon Aug 14 04:07:51 PDT 2006


On Fri, 2006-08-11 at 09:15 -0700, Arjan van de Ven wrote:
> Roland Dreier wrote:
> > Here's a long-standing bug that lockdep found very nicely.
> > 
> > Ingo/Arjan, can you confirm that the fix looks OK and I am using
> > spin_lock_nested() properly?  I couldn't find much documentation or
> > many examples of it, so I'm not positive this is the right way to
> > handle this fix.
> > 
> 
> looks correct to me;
> 
> Acked-by: Arjan van de Ven <arjan at linux.intel.com>

looks good to me too.

Acked-by: Ingo Molnar <mingo at elte.hu>

btw., we could introduce a new spin-lock op: 

	spin_lock_double(l1, l2);
	...
	spin_unlock_double(l1, l2);

because some other code, like kernel/sched.c, fs/dcache.c and
kernel/futex.c uses quite similar locking.

	Ingo





More information about the general mailing list