Re: [PATCH 4/5] sock, cgroup: add sock->sk_cgroup

From
David Miller <hidden>
Date
2015-11-17 21:25:59
Also in
cgroups, lkml, netfilter-devel
Reply to
Tejun Heo, 2015-11-17
From: Tejun Heo <redacted>
Date: Tue, 17 Nov 2015 14:40:39 -0500
In preparation, this patch adds sock->sk_cgroup which points to the
associated cgroup.  A sock is associated on creation and stays
associated to the same cgroup until freed; unfortunately, this ends up
adding another cgroup field to struct sock on top of sk_cgrp_prioidx
and sk_classid.  I tried to think of a way to somehow overload the
existing fields but couldn't come up with a reasonable one.
sk->sk_cgrp_prioidx is simply sk->sk_cgroup->id, is it not?

We really need to consolidate this before we stuff even more members
into the socket for control group support, sorry.
Thread (22 messages) 22 messages, 4 authors, last reply 2015-11-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help