Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1439912

Re: [PATCH] sched/fair: Fix the misuse of cfs_rq in sync_throttle()

From Konstantin Khlebnikov <koct9i@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] sched/fair: Fix the misuse of cfs_rq in sync_throttle()
Date 2016-07-09 10:20 +0200
Message-ID <rSVEu-mL-11@gated-at.bofh.it> (permalink)
References <rSVl7-8qY-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jul 9, 2016 at 10:54 AM, Xunlei Pang <xlpang@redhat.com> wrote:
> Should update "cfs_rq->throttled_clock_task" other than pcfs_rq's.
>
> Signed-off-by: Xunlei Pang <xlpang@redhat.com>

Ack

> ---
>  kernel/sched/fair.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index 4088eed..039de34 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -4269,7 +4269,7 @@ static void sync_throttle(struct task_group *tg, int cpu)
>         pcfs_rq = tg->parent->cfs_rq[cpu];
>
>         cfs_rq->throttle_count = pcfs_rq->throttle_count;
> -       pcfs_rq->throttled_clock_task = rq_clock_task(cpu_rq(cpu));
> +       cfs_rq->throttled_clock_task = rq_clock_task(cpu_rq(cpu));
>  }
>
>  /* conditionally throttle active cfs_rq's from put_prev_entity() */
> --
> 1.8.3.1
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] sched/fair: Fix the misuse of cfs_rq in sync_throttle() Xunlei Pang <xlpang@redhat.com> - 2016-07-09 10:00 +0200
  Re: [PATCH] sched/fair: Fix the misuse of cfs_rq in sync_throttle() Konstantin Khlebnikov <koct9i@gmail.com> - 2016-07-09 10:20 +0200
  Re: [PATCH] sched/fair: Fix the misuse of cfs_rq in sync_throttle() Peter Zijlstra <peterz@infradead.org> - 2016-07-12 17:30 +0200

csiph-web