lkml.org 
[lkml]   [2016]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [rfc patch v4.4-rt2] sched: fix up preempt lazy forward port
    From
    Date
    On Tue, 2016-01-19 at 05:41 +0100, Mike Galbraith wrote:
    > On Mon, 2016-01-18 at 21:18 +0100, Sebastian Andrzej Siewior wrote:
    >
    > > > --- a/kernel/sched/core.c
    > > > +++ b/kernel/sched/core.c
    > > > @@ -3542,6 +3542,15 @@ asmlinkage __visible void __sched notrac
    > > > if (likely(!preemptible()))
    > > > return;
    > > >
    > > > +#ifdef CONFIG_PREEMPT_LAZY
    > > > + /*
    > > > + * Check for lazy preemption
    > > > + */
    > > > + if (current_thread_info()->preempt_lazy_count &&
    > > > + !test_thread_flag(TIF_NEED_RESCHED))
    > > > + return;
    > > > +#endif
    > > > +
    > >
    > > And this is a new piece. So you forbid that tasks leave the CPU if
    > > lazy_count > 0. Let me look closed why this is happening and if
    > > this is
    > > v4.1 … v4.4 or not.
    >
    > That check wants a !rt_task(current) qualifier anyway.

    (bah, -ESWILLMORECOFFEE)

    \
     
     \ /
      Last update: 2016-01-19 06:41    [W:4.085 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site