SchedMD/slurm — pull request #13 by grondo (2012-03-18 14:13:52+00:00)
Title: task/cgroup: minor job step memcg fixes

This set of patches makes a minor adjustment to cleanup of job step
memory cgroups. Instead of writing to force_empty at job step completion,
we instead remove the cgroup (with xcgroup_delete()). Details are explained
in PATCH 3/3, but the result is IMO a cleaner management of job step
memcgs, and seems to be what was intended in the comments of
task_cgroup_memory_fini().

The first two patches simply enable the ability to rmdir(2) the job
step cgroup while slurmstepd is running by ensuring that all threads
of the process are moved to the root cgroup, instead of just one.