Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245553
b: refs/heads/master
c: 822ff79
h: refs/heads/master
i:
  245551: c73f848
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 11, 2011
1 parent d80afaa commit a7de045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: dce840a08702bd13a9a186e07e63d1ef82256b5e
refs/heads/master: 822ff793c34a5d4c8b5f3f9ce932602233d96464
11 changes: 5 additions & 6 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -7023,7 +7023,8 @@ static void __free_domain_allocs(struct s_data *d, enum s_alloc what,

switch (what) {
case sa_rootdomain:
free_rootdomain(&d->rd->rcu); /* fall through */
if (!atomic_read(&d->rd->refcount))
free_rootdomain(&d->rd->rcu); /* fall through */
case sa_sd:
free_percpu(d->sd); /* fall through */
case sa_sd_storage:
Expand Down Expand Up @@ -7208,7 +7209,7 @@ static int build_sched_domains(const struct cpumask *cpu_map,
enum s_alloc alloc_state = sa_none;
struct sched_domain *sd;
struct s_data d;
int i;
int i, ret = -ENOMEM;

alloc_state = __visit_domain_allocation_hell(&d, cpu_map);
if (alloc_state != sa_rootdomain)
Expand Down Expand Up @@ -7261,12 +7262,10 @@ static int build_sched_domains(const struct cpumask *cpu_map,
}
rcu_read_unlock();

__free_domain_allocs(&d, sa_sd, cpu_map);
return 0;

ret = 0;
error:
__free_domain_allocs(&d, alloc_state, cpu_map);
return -ENOMEM;
return ret;
}

static cpumask_var_t *doms_cur; /* current sched domains */
Expand Down

0 comments on commit a7de045

Please sign in to comment.