lkml.org 
[lkml]   [2006]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] lockdep: core, fix rq-lock handling on __ARCH_WANT_UNLOCKED_CTXSW
On Wed, Jul 12, 2006 at 10:26:39PM +0200, Ingo Molnar wrote:

> Subject: lockdep: core, fix rq-lock handling on __ARCH_WANT_UNLOCKED_CTXSW
> From: Ingo Molnar <mingo@elte.hu>
>
> on platforms that have __ARCH_WANT_UNLOCKED_CTXSW set and want to
> implement lock validator support there's a bug in rq->lock handling: in
> this case we dont 'carry over' the runqueue lock into another task - but
> still we did a spinlock_release() of it. Fix this by making the
> spinlock_release() in context_switch() dependent on
> !__ARCH_WANT_UNLOCKED_CTXSW.
>
> (Reported by Ralf Baechle on MIPS, which has __ARCH_WANT_UNLOCKED_CTXSW.
> This fixes a lockdep-internal BUG message on such platforms.)
>
> Signed-off-by: Ingo Molnar <mingo@elte.hu>

Tested and works as advertised for me,

Ralf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-13 13:07    [W:0.041 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site