Re: cls_cgroup: Store classid in struct sock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neil Horman
Date: Saturday, May 22, 2010 - 5:26 am

On Sat, May 22, 2010 at 11:49:57AM +1000, Herbert Xu wrote:
Thats definately part of it yes.  But its not all of it, although I think the
rest doesn't have anything to do with your patch.  I fixed that straight away,
but I was still alwasy getting classids of zero in the qemu processes.  Looking
at the cgroup classifier, I'm wondering how this cgroup code ever worked in the
first place.  When we register the cgroup subsystem, we don't register an attach
method, so we never get a chance to assign task_cls_sate(tsk)->classid to any
non-zero value.  I've got a version of the patch that add that, but for some
reason, even though I set task_cls_state(tsk)->classid to the cgroup classid on
attach, task_cls_classid still returns zero.  I'm not sure why that is yet, but
I'm looking into it.

Neil

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 12:57 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 1:09 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 1:18 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 1:20 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 1:21 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 1:27 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 1:44 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Wed May 19, 5:05 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Wed May 19, 5:55 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 7:10 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Wed May 19, 7:31 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Wed May 19, 11:00 am)
Re: tun: Use netif_receive_skb instead of netif_rx, David Miller, (Wed May 19, 1:14 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Wed May 19, 1:24 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Thomas Graf, (Wed May 19, 1:49 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Brian Bloniarz, (Wed May 19, 2:00 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, David Miller, (Wed May 19, 7:55 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 7:57 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, David Miller, (Wed May 19, 8:05 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 8:34 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 8:42 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, David Miller, (Wed May 19, 8:46 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 9:54 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 10:01 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 10:15 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 10:20 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 10:36 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 10:46 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Eric Dumazet, (Wed May 19, 11:03 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 11:11 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 11:19 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Wed May 19, 11:52 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Thomas Graf, (Thu May 20, 1:10 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Thomas Graf, (Thu May 20, 2:40 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Thu May 20, 10:29 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Thu May 20, 4:16 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Thu May 20, 5:39 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Thu May 20, 6:02 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Thu May 20, 6:16 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, David Miller, (Thu May 20, 10:49 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Fri May 21, 3:51 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Herbert Xu, (Fri May 21, 4:08 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Fri May 21, 5:59 am)
Re: tun: Use netif_receive_skb instead of netif_rx, Neil Horman, (Fri May 21, 9:40 am)
cls_cgroup: Store classid in struct sock, Herbert Xu, (Fri May 21, 6:49 pm)
Re: cls_cgroup: Store classid in struct sock, Neil Horman, (Sat May 22, 5:26 am)
Re: cls_cgroup: Store classid in struct sock, Herbert Xu, (Sun May 23, 10:42 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, David Miller, (Sun May 23, 11:44 pm)
Re: tun: Use netif_receive_skb instead of netif_rx, David Miller, (Sun May 23, 11:44 pm)
Re: cls_cgroup: Store classid in struct sock, David Miller, (Sun May 23, 11:44 pm)
Re: cls_cgroup: Store classid in struct sock, David Miller, (Sun May 23, 11:55 pm)
Re: cls_cgroup: Store classid in struct sock, Herbert Xu, (Mon May 24, 12:07 am)
Re: cls_cgroup: Store classid in struct sock, David Miller, (Mon May 24, 12:14 am)
Re: cls_cgroup: Store classid in struct sock, Neil Horman, (Mon May 24, 4:09 am)
Re: cls_cgroup: Store classid in struct sock, Herbert Xu, (Mon May 24, 4:24 am)