Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263328
b: refs/heads/master
c: 5af12d0
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Aug 25, 2011
1 parent 5b29272 commit 60dd168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: a801876638c5ce650223476c4eb8f37cea32dc1c
refs/heads/master: 5af12d0efdbd9967cc71a0a10c4025c4255a6254
9 changes: 2 additions & 7 deletions trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -2169,13 +2169,7 @@ static void drain_all_stock(struct mem_cgroup *root_mem, bool sync)

/* Notify other cpus that system-wide "drain" is running */
get_online_cpus();
/*
* Get a hint for avoiding draining charges on the current cpu,
* which must be exhausted by our charging. It is not required that
* this be a precise check, so we use raw_smp_processor_id() instead of
* getcpu()/putcpu().
*/
curcpu = raw_smp_processor_id();
curcpu = get_cpu();
for_each_online_cpu(cpu) {
struct memcg_stock_pcp *stock = &per_cpu(memcg_stock, cpu);
struct mem_cgroup *mem;
Expand All @@ -2192,6 +2186,7 @@ static void drain_all_stock(struct mem_cgroup *root_mem, bool sync)
schedule_work_on(cpu, &stock->work);
}
}
put_cpu();

if (!sync)
goto out;
Expand Down

0 comments on commit 60dd168

Please sign in to comment.