]> git.baikalelectronics.ru Git - kernel.git/commit
netprio_cgroup: allow nesting and inherit config on cgroup creation
authorTejun Heo <tj@kernel.org>
Thu, 22 Nov 2012 15:32:47 +0000 (07:32 -0800)
committerTejun Heo <tj@kernel.org>
Thu, 22 Nov 2012 15:32:47 +0000 (07:32 -0800)
commitc6e8675197266d78a38071ed10e57838f08cb9a9
treef060cb5cb6e861b22660f54f310d5eb62ce9359a
parent348b970940e5ef60bb0b390298a33d9353cb375e
netprio_cgroup: allow nesting and inherit config on cgroup creation

Inherit netprio configuration from ->css_online(), allow nesting and
remove .broken_hierarchy marking.  This makes netprio_cgroup's
behavior match netcls_cgroup's.

Note that this patch changes userland-visible behavior.  Nesting is
allowed and the first level cgroups below the root cgroup behave
differently - they inherit priorities from the root cgroup on creation
instead of starting with 0.  This is unfortunate but not doing so is
much crazier.

Signed-off-by: Tejun Heo <tj@kernel.org>
Tested-and-Acked-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Acked-by: David S. Miller <davem@davemloft.net>
Documentation/cgroups/net_prio.txt
net/core/netprio_cgroup.c