Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234559
b: refs/heads/master
c: 800d4d3
h: refs/heads/master
i:
  234557: 9cd0fdc
  234555: 19543ce
  234551: 229aced
  234543: 9d4c419
  234527: af17e16
  234495: 17e5225
v: v3
  • Loading branch information
Yong Zhang authored and Ingo Molnar committed Feb 23, 2011
1 parent d717ae7 commit 79e9222
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1747b21fecbfb63fbf6b9624e8b92707960d5a97
refs/heads/master: 800d4d30c8f20bd728e5741a3b77c4859a613f7c
4 changes: 4 additions & 0 deletions trunk/kernel/sched_autogroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,15 @@ autogroup_move_group(struct task_struct *p, struct autogroup *ag)

p->signal->autogroup = autogroup_kref_get(ag);

if (!ACCESS_ONCE(sysctl_sched_autogroup_enabled))
goto out;

t = p;
do {
sched_move_task(t);
} while_each_thread(p, t);

out:
unlock_task_sighand(p, &flags);
autogroup_kref_put(prev);
}
Expand Down
5 changes: 5 additions & 0 deletions trunk/kernel/sched_autogroup.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#ifdef CONFIG_SCHED_AUTOGROUP

struct autogroup {
/*
* reference doesn't mean how many thread attach to this
* autogroup now. It just stands for the number of task
* could use this autogroup.
*/
struct kref kref;
struct task_group *tg;
struct rw_semaphore lock;
Expand Down

0 comments on commit 79e9222

Please sign in to comment.