[lkml]   [2010]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: Linux 2.6.37-rc1 (net/sched: cls_cgroup)
    On Wed, Nov 03, 2010 at 11:01:17PM +0100, Eric Dumazet wrote:
    > commits 8e039d84b323c450
    > (cgroups: net_cls as module)
    > followed by commit f845172531f
    > (cls_cgroup: Store classid in struct sock)

    Indeed, it looks like the tree I worked on didn't have the first
    patch applied for some reason.

    Anyway, this patch should fix the problem. Thanks Eric!

    cls_cgroup: Fix crash on module unload

    Somewhere along the lines net_cls_subsys_id became a macro when
    cls_cgroup is built as a module. Not only did it make cls_cgroup
    completely useless, it also causes it to crash on module unload.

    This patch fixes this by removing that macro.

    Thanks to Eric Dumazet for diagnosing this problem.

    Reported-by: Randy Dunlap <>
    Signed-off-by: Herbert Xu <>

    diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c
    index 37dff78..d49c40f 100644
    --- a/net/sched/cls_cgroup.c
    +++ b/net/sched/cls_cgroup.c
    @@ -34,8 +34,6 @@ struct cgroup_subsys net_cls_subsys = {
    .populate = cgrp_populate,
    .subsys_id = net_cls_subsys_id,
    -#define net_cls_subsys_id net_cls_subsys.subsys_id
    .module = THIS_MODULE,
    Email: Herbert Xu <>
    Home Page:
    PGP Key:

     \ /
      Last update: 2010-11-04 00:35    [W:0.021 / U:18.928 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site