[lkml]   [2008]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] lockdep: change scheduler annotation
From: Peter Zijlstra <>
Date: Wed, 30 Jul 2008 13:26:57 +0200

> While thinking about David's patch it _finally_ dawned on me that there
> is no reason we have a lock class per cpu..
> Sorry for being dense :-/
> The below changes the annotation from a lock class per cpu, to a single
> nested lock, as the scheduler never holds more that 2 rq locks at a time
> anyway.
> If there was code requiring holding all rq locks this would not work and
> the original annotation would be the only option, but that not being the
> case, this is a much lighter one.
> Compiles and boots on a 2-way x86_64.
> Signed-off-by: Peter Zijlstra <>

I had been wondering this entire debugging session why the
per-rq lock classes were even there, thanks for getting
rid of them :)

 \ /
  Last update: 2008-07-30 13:37    [W:0.100 / U:5.696 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site