Re: [RFC PATCH 1/1] sched: do active load balance in balance callback
From: Yafang Shao
Date: Mon Jul 19 2021 - 08:04:31 EST
On Wed, Jul 14, 2021 at 8:27 PM Valentin Schneider
<valentin.schneider@xxxxxxx> wrote:
>
> On 11/07/21 15:40, Yafang Shao wrote:
> > diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> > index 4ca80df205ce..a0a90a37e746 100644
> > --- a/kernel/sched/core.c
> > +++ b/kernel/sched/core.c
> > @@ -8208,6 +8208,7 @@ void __init sched_init(void)
> > rq->cpu_capacity = rq->cpu_capacity_orig = SCHED_CAPACITY_SCALE;
> > rq->balance_callback = &balance_push_callback;
> > rq->active_balance = 0;
> > + rq->active_balance_target = NULL;
> > rq->next_balance = jiffies;
> > rq->push_cpu = 0;
> > rq->cpu = i;
> > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> > index 23663318fb81..9aaa75250cdc 100644
> > --- a/kernel/sched/fair.c
> > +++ b/kernel/sched/fair.c
> > @@ -7751,36 +7751,6 @@ static void detach_task(struct task_struct *p,
> > struct lb_env *env)
>
> Your mail client is breaking lines which pretty much wrecks the
> patch. Please use git send-email to submit patches, or look at
> Documentation/process/email-clients.rst to figure out how to tweak your
> client.
My mail client is broken.
I will fix it and resend.
--
Thanks
Yafang