Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107003
b: refs/heads/master
c: 8d1e626
h: refs/heads/master
i:
  107001: a5d38ca
  106999: 6153336
v: v3
  • Loading branch information
Li Zefan authored and Linus Torvalds committed Jul 30, 2008
1 parent 9a2aa21 commit 636c72b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 4ef1b0fd61333b3b81ebe29283898c6c84b15c9f
refs/heads/master: 8d1e6266f512b3a94ef6d33528ff385f1aea0392
7 changes: 2 additions & 5 deletions trunk/kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -1833,24 +1833,21 @@ static void remove_tasks_in_empty_cpuset(struct cpuset *cs)
*/
static void scan_for_empty_cpusets(const struct cpuset *root)
{
LIST_HEAD(queue);
struct cpuset *cp; /* scans cpusets being updated */
struct cpuset *child; /* scans child cpusets of cp */
struct list_head queue;
struct cgroup *cont;
nodemask_t oldmems;

INIT_LIST_HEAD(&queue);

list_add_tail((struct list_head *)&root->stack_list, &queue);

while (!list_empty(&queue)) {
cp = container_of(queue.next, struct cpuset, stack_list);
cp = list_first_entry(&queue, struct cpuset, stack_list);
list_del(queue.next);
list_for_each_entry(cont, &cp->css.cgroup->children, sibling) {
child = cgroup_cs(cont);
list_add_tail(&child->stack_list, &queue);
}
cont = cp->css.cgroup;

/* Continue past cpusets with all cpus, mems online */
if (cpus_subset(cp->cpus_allowed, cpu_online_map) &&
Expand Down

0 comments on commit 636c72b

Please sign in to comment.