lkml.org 
[lkml]   [2010]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [tip:core/locking] mutex: Fix optimistic spinning vs. BKL


On Tue, 18 May 2010, Ingo Molnar wrote:
>
> Tony, mind sending a version of this patch that does not
> include a jiffies based spinning loop?

I think it should just be the two-liner

if (current->lock_depth >= 0)
break;

in that loop. Plus comment.

Linus


\
 
 \ /
  Last update: 2010-05-18 18:31    [W:0.053 / U:6.552 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site