From: Tejun Heo <tj@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: "Ingo Molnar" <mingo@redhat.com>,
"“linux-kernel@vger.kernel.org”" <linux-kernel@vger.kernel.org>,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Mike Galbraith" <efault@gmx.de>, "Paul Turner" <pjt@google.com>,
"Chris Mason" <clm@fb.com>,
"“kernel-team@fb.com”" <kernel-team@fb.com>
Subject: Re: [PATCH 1/2] sched/fair: Use task_groups instead of leaf_cfs_rq_list to walk all cfs_rqs
Date: Thu, 4 May 2017 13:31:38 -0400 [thread overview]
Message-ID: <20170504173138.GA7288@htj.duckdns.org> (raw)
In-Reply-To: <20170504133122.a6qjlj3hlblbjxux@hirez.programming.kicks-ass.net>
Hello, Peter.
On Thu, May 04, 2017 at 03:31:22PM +0200, Peter Zijlstra wrote:
> Yes we can hit an (almost) dead cfs_rq, but poking the bandwidth
> variables thereof is harmless.
>
> unthrottle_cfs_rq() also stops doing anything much when it finds the
> cfs_rq is empty, which must be the case if we're removing it.
Yeah, if you're okay with calling the functions on dead cfs_rq's, just
wrapping with rcu_read_lock should be enough.
> I don't know Paul's opinion on RCU GPs happening while stop_machine(),
> but just in case he feels that's fair game, I did add the
> rcu_read_lock() thingies.
>
> The lockdep assert is mostly documentation, to more easily see
> it is indeed held when we get there.
>
> I left print_cfs_stats using the leaf list, no point in printing stuff
> that's empty.
>
> This way we can avoid taking all RQ locks on cgroup destruction.
Looks good to me.
Thanks.
--
tejun
next prev parent reply other threads:[~2017-05-04 17:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 0:40 Tejun Heo
2017-04-26 0:43 ` [2/2] sched/fair: Fix O(# total cgroups) in load balance path Tejun Heo
2017-05-01 16:11 ` Peter Zijlstra
2017-05-01 19:11 ` Tejun Heo
2017-05-15 9:13 ` [tip:sched/core] sched/fair: Fix O(nr_cgroups) " tip-bot for Tejun Heo
2017-05-15 9:43 ` Peter Zijlstra
2017-05-15 10:13 ` tip-bot for Tejun Heo
2017-05-01 16:24 ` [PATCH 1/2] sched/fair: Use task_groups instead of leaf_cfs_rq_list to walk all cfs_rqs Peter Zijlstra
2017-05-01 16:59 ` Peter Zijlstra
2017-05-01 17:02 ` Peter Zijlstra
2017-05-01 19:07 ` Tejun Heo
2017-05-04 13:31 ` Peter Zijlstra
2017-05-04 17:31 ` Tejun Heo [this message]
2017-05-15 9:12 ` [tip:sched/core] " tip-bot for Peter Zijlstra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170504173138.GA7288@htj.duckdns.org \
--to=tj@kernel.org \
--cc=clm@fb.com \
--cc=efault@gmx.de \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome