lkml.org 
[lkml]   [2015]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] sched: might_sleep(): do rate-limiting before sanity checks
On Wed, Jun 24, 2015 at 08:36:38PM -0700, Dave Hansen wrote:
> On 06/24/2015 05:03 PM, Dave Hansen wrote:
> > In any case, we ratelimit might_sleep() checks anyway. But, we
> > do the ratelimiting *after* we check the other conditions for
> > might_sleep() including the (costly) irqs_disabled() call.
>
> Thinking about this a bit more, this patch is wrong.
>
> This only does a _check_ once per jiffy instead of just one warning per
> jiffy, which is totally bogus.
>
> I would be interested, though, if anybody has any ideas about speeding
> up the irqs_disabled() checking.

Thomas has something up his sleeve..


\
 
 \ /
  Last update: 2015-06-25 10:01    [W:0.060 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site