]> git.baikalelectronics.ru Git - kernel.git/commit
cls_cgroup: Fix rcu lockdep warning
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 2 Sep 2010 15:42:43 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Sep 2010 16:55:24 +0000 (09:55 -0700)
commit112fa826c85c94e57a98a8d90d5e3047e065c290
treefa8e5855de904daffba92bd177fa57ee85641521
parentee3c26d256b5228dd1bc3638381e956e7d92101a
cls_cgroup: Fix rcu lockdep warning

Dave reported an rcu lockdep warning on 2.6.35.4 kernel

task->cgroups and task->cgroups->subsys[i] are protected by RCU.
So we avoid accessing invalid pointers here. This might happen,
for example, when you are deref-ing those pointers while someone
move @task from one cgroup to another.

Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/cls_cgroup.h