Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210571
b: refs/heads/master
c: 3fb5a99
h: refs/heads/master
i:
  210569: c36352f
  210567: 442fa3c
v: v3
  • Loading branch information
Li Zefan authored and David S. Miller committed Sep 3, 2010
1 parent aa0814a commit 9d73423
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 323f30b361b2e6febb9065ab4a1a5298acb66ac1
refs/heads/master: 3fb5a991916091a908d53608a5899240039fb51e
10 changes: 8 additions & 2 deletions trunk/include/net/cls_cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ struct cgroup_cls_state
#ifdef CONFIG_NET_CLS_CGROUP
static inline u32 task_cls_classid(struct task_struct *p)
{
int classid;

if (in_interrupt())
return 0;

return container_of(task_subsys_state(p, net_cls_subsys_id),
struct cgroup_cls_state, css)->classid;
rcu_read_lock();
classid = container_of(task_subsys_state(p, net_cls_subsys_id),
struct cgroup_cls_state, css)->classid;
rcu_read_unlock();

return classid;
}
#else
extern int net_cls_subsys_id;
Expand Down

0 comments on commit 9d73423

Please sign in to comment.