All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix the 'current css_set' problem in debug subsystem
@ 2009-11-02  7:44 Liu Aleaxander
  0 siblings, 0 replies; only message in thread
From: Liu Aleaxander @ 2009-11-02  7:44 UTC (permalink / raw)
  To: menage, lizf, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-02  7:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02  7:44 [PATCH 0/3] Fix the 'current css_set' problem in debug subsystem Liu Aleaxander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.