cgroup-bin doesn't unmount /sys/fs/cgroup when stopping

Bug #807418 reported by Stéphane Graber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcgroup (Ubuntu)
Fix Released
Low
Serge Hallyn

Bug Description

When starting the cgconfig upstart job, a tmpfs is mounted over /sys/fs/cgroup.
When stopping the same job, all the cgroup fs get unmounted but not the tmpfs.

The problem can easily be seen with the following example:

root@castiana:~# cat /proc/mounts | grep cgroup | grep tmpfs
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
root@castiana:~# for i in $(seq 1 10); do restart cgconfig; done
cgconfig start/running
cgconfig start/running
cgconfig start/running
cgconfig start/running
cgconfig start/running
cgconfig start/running
cgconfig start/running
cgconfig start/running
cgconfig start/running
cgconfig start/running
root@castiana:~# cat /proc/mounts | grep cgroup | grep tmpfs
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0
cgroups /sys/fs/cgroup tmpfs rw,relatime 0 0

Related branches

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Oops, the umount of /sys/fs/cgroup should be done after calling cgclear,
not before.

Changed in libcgroup (Ubuntu):
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Serge Hallyn (serge-hallyn)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libcgroup - 0.37.1-1ubuntu3

---------------
libcgroup (0.37.1-1ubuntu3) oneiric; urgency=low

  * Mount freezer cgroup by default. (LP: #807199)
  * On stop, attempt to umount the tmpfs at /sys/fs/cgroup after calling
    cgclear, not before. (LP: #807418)
 -- Serge Hallyn <email address hidden> Fri, 08 Jul 2011 10:03:04 -0500

Changed in libcgroup (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.