All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/5] percpu: add missing markups in kernel/workqueue.c
@ 2010-08-06 18:26 Namhyung Kim
  2010-08-07 12:27 ` Tejun Heo
  0 siblings, 1 reply; 4+ messages in thread
From: Namhyung Kim @ 2010-08-06 18:26 UTC (permalink / raw)
  To: tj; +Cc: linux-kernel


Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 kernel/workqueue.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 327d2de..bb030e3 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -57,7 +57,7 @@ struct cpu_workqueue_struct {
  * per-CPU workqueues:
  */
 struct workqueue_struct {
-	struct cpu_workqueue_struct *cpu_wq;
+	struct cpu_workqueue_struct __percpu *cpu_wq;
 	struct list_head list;
 	const char *name;
 	int singlethread;
@@ -821,7 +821,7 @@ int schedule_on_each_cpu(work_func_t func)
 {
 	int cpu;
 	int orig = -1;
-	struct work_struct *works;
+	struct work_struct __percpu *works;
 
 	works = alloc_percpu(struct work_struct);
 	if (!works)
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 3/5] percpu: add missing markups in kernel/workqueue.c
  2010-08-06 18:26 [PATCH 3/5] percpu: add missing markups in kernel/workqueue.c Namhyung Kim
@ 2010-08-07 12:27 ` Tejun Heo
  2010-08-07 13:53   ` [PATCH] workqueue: add missing __percpu markup " Namhyung Kim
  0 siblings, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2010-08-07 12:27 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: linux-kernel

On 08/06/2010 08:26 PM, Namhyung Kim wrote:
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>
> ---
>  kernel/workqueue.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/workqueue.c b/kernel/workqueue.c
> index 327d2de..bb030e3 100644
> --- a/kernel/workqueue.c
> +++ b/kernel/workqueue.c
> @@ -57,7 +57,7 @@ struct cpu_workqueue_struct {
>   * per-CPU workqueues:
>   */
>  struct workqueue_struct {
> -	struct cpu_workqueue_struct *cpu_wq;
> +	struct cpu_workqueue_struct __percpu *cpu_wq;
>  	struct list_head list;
>  	const char *name;
>  	int singlethread;
> @@ -821,7 +821,7 @@ int schedule_on_each_cpu(work_func_t func)
>  {
>  	int cpu;
>  	int orig = -1;
> -	struct work_struct *works;
> +	struct work_struct __percpu *works;
>  
>  	works = alloc_percpu(struct work_struct);
>  	if (!works)

Can you please redo this patch against the following git tree?

 git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-linus

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] workqueue: add missing __percpu markup in kernel/workqueue.c
  2010-08-07 12:27 ` Tejun Heo
@ 2010-08-07 13:53   ` Namhyung Kim
  2010-08-08 12:25     ` Tejun Heo
  0 siblings, 1 reply; 4+ messages in thread
From: Namhyung Kim @ 2010-08-07 13:53 UTC (permalink / raw)
  To: tj; +Cc: linux-kernel

works is a percpu pointer but was missing __percpu markup.
Add it.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 kernel/workqueue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index e2eb351..334a9e0 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -2553,7 +2553,7 @@ EXPORT_SYMBOL(schedule_delayed_work_on);
 int schedule_on_each_cpu(work_func_t func)
 {
 	int cpu;
-	struct work_struct *works;
+	struct work_struct __percpu *works;
 
 	works = alloc_percpu(struct work_struct);
 	if (!works)
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] workqueue: add missing __percpu markup in kernel/workqueue.c
  2010-08-07 13:53   ` [PATCH] workqueue: add missing __percpu markup " Namhyung Kim
@ 2010-08-08 12:25     ` Tejun Heo
  0 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2010-08-08 12:25 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: linux-kernel

On 08/07/2010 03:53 PM, Namhyung Kim wrote:
> works is a percpu pointer but was missing __percpu markup.
> Add it.
> 
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>

Applied to wq#for-linus.  Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-08 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-06 18:26 [PATCH 3/5] percpu: add missing markups in kernel/workqueue.c Namhyung Kim
2010-08-07 12:27 ` Tejun Heo
2010-08-07 13:53   ` [PATCH] workqueue: add missing __percpu markup " Namhyung Kim
2010-08-08 12:25     ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.