Thread (23 messages) 23 messages, 3 authors, 2012-11-22

Re: [PATCH 5/7] netprio_cgroup: use cgroup->id instead of cgroup_netprio_state->prioidx

From: Daniel Wagner <hidden>
Date: 2012-11-20 08:47:27
Also in: lkml, netdev

On 20.11.2012 09:30, Tejun Heo wrote:
With priomap expansion no longer depending on knowing max id
allocated, netprio_cgroup can use cgroup->id insted of cs->prioidx.
Drop prioidx alloc/free logic and convert all uses to cgroup->id.

* In cgrp_css_alloc(), parent->id test is moved above @cs allocation
   to simplify error path.

* In cgrp_css_free(), @cs assignment is made initialization.

Signed-off-by: Tejun Heo <redacted>
Acked-by: Neil Horman <redacted>
Tested and Acked-by: Daniel Wagner [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help