2010-08-07 15:26:57

by Namhyung Kim

[permalink] [raw]
Subject: [PATCH] percpu: add missing markup in mm/memcontrol.c

mem_cgroup->stat is a percpu pointer but was missing __percpu markup.
Add it.

Signed-off-by: Namhyung Kim <[email protected]>
---
mm/memcontrol.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 20a8193..edf5011 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -252,7 +252,7 @@ struct mem_cgroup {
/*
* percpu counter.
*/
- struct mem_cgroup_stat_cpu *stat;
+ struct mem_cgroup_stat_cpu __percpu *stat;
};

/* Stuffs for move charges at task migration. */
--
1.7.0.4


2010-08-07 15:32:41

by Tejun Heo

[permalink] [raw]
Subject: [PATCH] cgroup: add missing __percpu markup in mm/memcontrol.c

From: Namhyung Kim <[email protected]>

mem_cgroup->stat is a percpu pointer but was missing __percpu markup.
Add it.

Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Tejun Heo <[email protected]>
---
Namhyung, can you please look up the maintainers in MAINTAINERS and/or
using scripts/get_maintainer.pl and submit __percpu markup patches to
the respective maintainers w/ me cc'd?

Thank you.

mm/memcontrol.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 20a8193..edf5011 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -252,7 +252,7 @@ struct mem_cgroup {
/*
* percpu counter.
*/
- struct mem_cgroup_stat_cpu *stat;
+ struct mem_cgroup_stat_cpu __percpu *stat;
};

/* Stuffs for move charges at task migration. */
--
1.7.0.4

2010-08-08 02:51:47

by Hiroyuki Kamezawa

[permalink] [raw]
Subject: Re: [PATCH] cgroup: add missing __percpu markup in mm/memcontrol.c

2010/8/8 Tejun Heo <[email protected]>:
> From: Namhyung Kim <[email protected]>
>
> mem_cgroup->stat is a percpu pointer but was missing __percpu markup.
> Add it.
>
> Signed-off-by: Namhyung Kim <[email protected]>
> Acked-by: Tejun Heo <[email protected]>

Thank you.
Acked-by: KAMEZAWA Hiroyuki <[email protected]>

2010-08-08 05:54:11

by Balbir Singh

[permalink] [raw]
Subject: Re: [PATCH] cgroup: add missing __percpu markup in mm/memcontrol.c

On Sat, Aug 7, 2010 at 9:01 PM, Tejun Heo <[email protected]> wrote:
> From: Namhyung Kim <[email protected]>
>
> mem_cgroup->stat is a percpu pointer but was missing __percpu markup.
> Add it.
>
> Signed-off-by: Namhyung Kim <[email protected]>
> Acked-by: Tejun Heo <[email protected]>
> ---
> Namhyung, can you please look up the maintainers in MAINTAINERS and/or
> using scripts/get_maintainer.pl and submit __percpu markup patches to
> the respective maintainers w/ me cc'd?
>

Acked-by: Balbir Singh <[email protected]>

Balbir