From: Liu Aleaxander <aleaxander@gmail.com>
To: menage@google.com, lizf@cn.fujitsu.com, linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] Fix the 'current css_set' problem in debug subsystem
Date: Mon, 2 Nov 2009 15:44:22 +0800 [thread overview]
Message-ID: <b741c2440911012344n7a6f7241ma873abac2fc9507e@mail.gmail.com> (raw)
Hello all.
(Sorry for the resending, it seems I opened the HTML encoding before)
This a three-patch set to fix the 'current css_set' problem in debug
subsystem of cgroup system. (well, in fact, it's a two-patch set; the
third one just fixes a typo).
Say I mount a cgroup fs in /cgroup, and here is the problem:
$ cat debug.current_css_set_refcount
268
$ mkdir test
$ cd test
$ cat debug.curernt_css_set_refcount
268
$ echo $$ > tasks
$ cat debug.current_css_set_refcount
2
$ cd ../
$ cat debug.current_css_set_refcount
2
That means it always print the css_set_refcount of the cgroup that
comprise the current task(bash, here), instead of the current cgroup
whatever cgroup you are in. And this would be meaningless to put the
same content in all the cgroups. So, to make it more meaningful, we
should make it print the css_set_refcount of the cgroup you are
currently in.
Patch 1 adds a cgroup_first_css_set function to get the current
css_set of one cgroup.
Patch 2 fixes the problem.
Patch 3 just fixes a typo.
--
regards
Liu Aleaxander
reply other threads:[~2009-11-02 7:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=b741c2440911012344n7a6f7241ma873abac2fc9507e@mail.gmail.com \
--to=aleaxander@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=menage@google.com \
/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
all inboxes | Powered by JetHome®