All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] workqueue: fix rebind bound workers warning
@ 2016-05-05  1:41 Wanpeng Li
  2016-05-09  7:28 ` Wanpeng Li
  2016-05-09 17:00 ` Tejun Heo
  0 siblings, 2 replies; 10+ messages in thread
From: Wanpeng Li @ 2016-05-05  1:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Wanpeng Li, Tejun Heo, Lai Jiangshan

From: Wanpeng Li <wanpeng.li@hotmail.com>

------------[ cut here ]------------
WARNING: CPU: 0 PID: 16 at kernel/workqueue.c:4559 rebind_workers+0x1c0/0x1d0
Modules linked in:
CPU: 0 PID: 16 Comm: cpuhp/0 Not tainted 4.6.0-rc4+ #31
Hardware name: IBM IBM System x3550 M4 Server -[7914IUW]-/00Y8603, BIOS -[D7E128FUS-1.40]- 07/23/2013
 0000000000000000 ffff881037babb58 ffffffff8139d885 0000000000000010
 0000000000000000 0000000000000000 0000000000000000 ffff881037babba8
 ffffffff8108505d ffff881037ba0000 000011cf3e7d6e60 0000000000000046
Call Trace:
 dump_stack+0x89/0xd4
 __warn+0xfd/0x120
 warn_slowpath_null+0x1d/0x20
 rebind_workers+0x1c0/0x1d0
 workqueue_cpu_up_callback+0xf5/0x1d0
 notifier_call_chain+0x64/0x90
 ? trace_hardirqs_on_caller+0xf2/0x220
 ? notify_prepare+0x80/0x80
 __raw_notifier_call_chain+0xe/0x10
 __cpu_notify+0x35/0x50
 notify_down_prepare+0x5e/0x80
 ? notify_prepare+0x80/0x80
 cpuhp_invoke_callback+0x73/0x330
 ? __schedule+0x33e/0x8a0
 cpuhp_down_callbacks+0x51/0xc0
 cpuhp_thread_fun+0xc1/0xf0
 smpboot_thread_fn+0x159/0x2a0
 ? smpboot_create_threads+0x80/0x80
 kthread+0xef/0x110
 ? wait_for_completion+0xf0/0x120
 ? schedule_tail+0x35/0xf0
 ret_from_fork+0x22/0x50
 ? __init_kthread_worker+0x70/0x70
---[ end trace eb12ae47d2382d8f ]---
notify_down_prepare: attempt to take down CPU 0 failed

This bug can be reproduced by below config w/ nohz_full= all cpus:

CONFIG_BOOTPARAM_HOTPLUG_CPU0=y
CONFIG_DEBUG_HOTPLUG_CPU0=y
CONFIG_NO_HZ_FULL=y

The boot CPU handles housekeeping duty(unbound timers, workqueues, 
timekeeping, ...) on behalf of full dynticks CPUs. It must remain 
online when nohz full is enabled. There is a priority set to every
notifier_blocks:

workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down

So tick_nohz_cpu_down callback failed when down prepare cpu 0, and 
notifier_blocks behind tick_nohz_cpu_down will not be called any 
more, which leads to workers are actually not unbound. Then hotplug 
state machine will fallback to undo and online cpu 0 again. Workers 
will be rebound unconditionally even if they are not unbound and 
trigger the warning in this progress.

This patch fix it by catching !DISASSOCIATED to avoid rebind bound 
workers.

Cc: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Suggested-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
---
 kernel/workqueue.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 2232ae3..cc18920 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -4525,6 +4525,12 @@ static void rebind_workers(struct worker_pool *pool)
 						  pool->attrs->cpumask) < 0);
 
 	spin_lock_irq(&pool->lock);
+
+	if (!(pool->flags & POOL_DISASSOCIATED)) {
+		spin_unlock_irq(&pool->lock);
+		return;
+	}
+
 	pool->flags &= ~POOL_DISASSOCIATED;
 
 	for_each_pool_worker(worker, pool) {
-- 
1.9.1

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-05  1:41 [PATCH] workqueue: fix rebind bound workers warning Wanpeng Li
@ 2016-05-09  7:28 ` Wanpeng Li
  2016-05-09 17:00 ` Tejun Heo
  1 sibling, 0 replies; 10+ messages in thread
From: Wanpeng Li @ 2016-05-09  7:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: Wanpeng Li, Tejun Heo, Lai Jiangshan

Sorry to quick ping you Tejun, just hope it can catch the upcoming
merge window. :-)
2016-05-05 9:41 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>:
> From: Wanpeng Li <wanpeng.li@hotmail.com>
>
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 16 at kernel/workqueue.c:4559 rebind_workers+0x1c0/0x1d0
> Modules linked in:
> CPU: 0 PID: 16 Comm: cpuhp/0 Not tainted 4.6.0-rc4+ #31
> Hardware name: IBM IBM System x3550 M4 Server -[7914IUW]-/00Y8603, BIOS -[D7E128FUS-1.40]- 07/23/2013
>  0000000000000000 ffff881037babb58 ffffffff8139d885 0000000000000010
>  0000000000000000 0000000000000000 0000000000000000 ffff881037babba8
>  ffffffff8108505d ffff881037ba0000 000011cf3e7d6e60 0000000000000046
> Call Trace:
>  dump_stack+0x89/0xd4
>  __warn+0xfd/0x120
>  warn_slowpath_null+0x1d/0x20
>  rebind_workers+0x1c0/0x1d0
>  workqueue_cpu_up_callback+0xf5/0x1d0
>  notifier_call_chain+0x64/0x90
>  ? trace_hardirqs_on_caller+0xf2/0x220
>  ? notify_prepare+0x80/0x80
>  __raw_notifier_call_chain+0xe/0x10
>  __cpu_notify+0x35/0x50
>  notify_down_prepare+0x5e/0x80
>  ? notify_prepare+0x80/0x80
>  cpuhp_invoke_callback+0x73/0x330
>  ? __schedule+0x33e/0x8a0
>  cpuhp_down_callbacks+0x51/0xc0
>  cpuhp_thread_fun+0xc1/0xf0
>  smpboot_thread_fn+0x159/0x2a0
>  ? smpboot_create_threads+0x80/0x80
>  kthread+0xef/0x110
>  ? wait_for_completion+0xf0/0x120
>  ? schedule_tail+0x35/0xf0
>  ret_from_fork+0x22/0x50
>  ? __init_kthread_worker+0x70/0x70
> ---[ end trace eb12ae47d2382d8f ]---
> notify_down_prepare: attempt to take down CPU 0 failed
>
> This bug can be reproduced by below config w/ nohz_full= all cpus:
>
> CONFIG_BOOTPARAM_HOTPLUG_CPU0=y
> CONFIG_DEBUG_HOTPLUG_CPU0=y
> CONFIG_NO_HZ_FULL=y
>
> The boot CPU handles housekeeping duty(unbound timers, workqueues,
> timekeeping, ...) on behalf of full dynticks CPUs. It must remain
> online when nohz full is enabled. There is a priority set to every
> notifier_blocks:
>
> workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down
>
> So tick_nohz_cpu_down callback failed when down prepare cpu 0, and
> notifier_blocks behind tick_nohz_cpu_down will not be called any
> more, which leads to workers are actually not unbound. Then hotplug
> state machine will fallback to undo and online cpu 0 again. Workers
> will be rebound unconditionally even if they are not unbound and
> trigger the warning in this progress.
>
> This patch fix it by catching !DISASSOCIATED to avoid rebind bound
> workers.
>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: Lai Jiangshan <jiangshanlai@gmail.com>
> Suggested-by: Lai Jiangshan <jiangshanlai@gmail.com>
> Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
> ---
>  kernel/workqueue.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/kernel/workqueue.c b/kernel/workqueue.c
> index 2232ae3..cc18920 100644
> --- a/kernel/workqueue.c
> +++ b/kernel/workqueue.c
> @@ -4525,6 +4525,12 @@ static void rebind_workers(struct worker_pool *pool)
>                                                   pool->attrs->cpumask) < 0);
>
>         spin_lock_irq(&pool->lock);
> +
> +       if (!(pool->flags & POOL_DISASSOCIATED)) {
> +               spin_unlock_irq(&pool->lock);
> +               return;
> +       }
> +
>         pool->flags &= ~POOL_DISASSOCIATED;
>
>         for_each_pool_worker(worker, pool) {
> --
> 1.9.1
>

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-05  1:41 [PATCH] workqueue: fix rebind bound workers warning Wanpeng Li
  2016-05-09  7:28 ` Wanpeng Li
@ 2016-05-09 17:00 ` Tejun Heo
  2016-05-09 21:50   ` Wanpeng Li
  1 sibling, 1 reply; 10+ messages in thread
From: Tejun Heo @ 2016-05-09 17:00 UTC (permalink / raw)
  To: Wanpeng Li; +Cc: linux-kernel, Wanpeng Li, Lai Jiangshan

Hello,

On Thu, May 05, 2016 at 09:41:31AM +0800, Wanpeng Li wrote:
> The boot CPU handles housekeeping duty(unbound timers, workqueues, 
> timekeeping, ...) on behalf of full dynticks CPUs. It must remain 
> online when nohz full is enabled. There is a priority set to every
> notifier_blocks:
> 
> workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down
> 
> So tick_nohz_cpu_down callback failed when down prepare cpu 0, and 
> notifier_blocks behind tick_nohz_cpu_down will not be called any 
> more, which leads to workers are actually not unbound. Then hotplug 
> state machine will fallback to undo and online cpu 0 again. Workers 
> will be rebound unconditionally even if they are not unbound and 
> trigger the warning in this progress.

I'm a bit confused.  Are you saying that the hotplug statemachine may
invoke CPU_DOWN_FAILED w/o preceding CPU_DOWN on the same callback?

Thanks.

-- 
tejun

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-09 17:00 ` Tejun Heo
@ 2016-05-09 21:50   ` Wanpeng Li
  2016-05-09 22:14     ` Wanpeng Li
  2016-05-10 23:23     ` Wanpeng Li
  0 siblings, 2 replies; 10+ messages in thread
From: Wanpeng Li @ 2016-05-09 21:50 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-kernel, Wanpeng Li, Lai Jiangshan, Thomas Gleixner

Cc Thomas, the new state machine author,
2016-05-10 1:00 GMT+08:00 Tejun Heo <tj@kernel.org>:
> Hello,
>
> On Thu, May 05, 2016 at 09:41:31AM +0800, Wanpeng Li wrote:
>> The boot CPU handles housekeeping duty(unbound timers, workqueues,
>> timekeeping, ...) on behalf of full dynticks CPUs. It must remain
>> online when nohz full is enabled. There is a priority set to every
>> notifier_blocks:
>>
>> workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down
>>
>> So tick_nohz_cpu_down callback failed when down prepare cpu 0, and
>> notifier_blocks behind tick_nohz_cpu_down will not be called any
>> more, which leads to workers are actually not unbound. Then hotplug
>> state machine will fallback to undo and online cpu 0 again. Workers
>> will be rebound unconditionally even if they are not unbound and
>> trigger the warning in this progress.
>
> I'm a bit confused.  Are you saying that the hotplug statemachine may
> invoke CPU_DOWN_FAILED w/o preceding CPU_DOWN on the same callback?

I think so. CPU_DOWN_FAILED is detected in the process of CPU_DOWN_PREPARE

Regards,
Wanpeng Li

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-09 21:50   ` Wanpeng Li
@ 2016-05-09 22:14     ` Wanpeng Li
  2016-05-10 23:23     ` Wanpeng Li
  1 sibling, 0 replies; 10+ messages in thread
From: Wanpeng Li @ 2016-05-09 22:14 UTC (permalink / raw)
  To: Tejun Heo
  Cc: linux-kernel, Wanpeng Li, Lai Jiangshan, Thomas Gleixner,
	Peter Zijlstra, Frédéric Weisbecker

Cc Peterz, Frederic,
2016-05-10 5:50 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>:
> Cc Thomas, the new state machine author,
> 2016-05-10 1:00 GMT+08:00 Tejun Heo <tj@kernel.org>:
>> Hello,
>>
>> On Thu, May 05, 2016 at 09:41:31AM +0800, Wanpeng Li wrote:
>>> The boot CPU handles housekeeping duty(unbound timers, workqueues,
>>> timekeeping, ...) on behalf of full dynticks CPUs. It must remain
>>> online when nohz full is enabled. There is a priority set to every
>>> notifier_blocks:
>>>
>>> workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down
>>>
>>> So tick_nohz_cpu_down callback failed when down prepare cpu 0, and
>>> notifier_blocks behind tick_nohz_cpu_down will not be called any
>>> more, which leads to workers are actually not unbound. Then hotplug
>>> state machine will fallback to undo and online cpu 0 again. Workers
>>> will be rebound unconditionally even if they are not unbound and
>>> trigger the warning in this progress.
>>
>> I'm a bit confused.  Are you saying that the hotplug statemachine may
>> invoke CPU_DOWN_FAILED w/o preceding CPU_DOWN on the same callback?
>
> I think so. CPU_DOWN_FAILED is detected in the process of CPU_DOWN_PREPARE
>
> Regards,
> Wanpeng Li

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-09 21:50   ` Wanpeng Li
  2016-05-09 22:14     ` Wanpeng Li
@ 2016-05-10 23:23     ` Wanpeng Li
  2016-05-11  7:34       ` Thomas Gleixner
  1 sibling, 1 reply; 10+ messages in thread
From: Wanpeng Li @ 2016-05-10 23:23 UTC (permalink / raw)
  To: Tejun Heo
  Cc: linux-kernel, Wanpeng Li, Lai Jiangshan, Thomas Gleixner,
	Peter Zijlstra, Frédéric Weisbecker

Hi Tejun,
2016-05-10 5:50 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>:
> Cc Thomas, the new state machine author,
> 2016-05-10 1:00 GMT+08:00 Tejun Heo <tj@kernel.org>:
>> Hello,
>>
>> On Thu, May 05, 2016 at 09:41:31AM +0800, Wanpeng Li wrote:
>>> The boot CPU handles housekeeping duty(unbound timers, workqueues,
>>> timekeeping, ...) on behalf of full dynticks CPUs. It must remain
>>> online when nohz full is enabled. There is a priority set to every
>>> notifier_blocks:
>>>
>>> workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down
>>>
>>> So tick_nohz_cpu_down callback failed when down prepare cpu 0, and
>>> notifier_blocks behind tick_nohz_cpu_down will not be called any
>>> more, which leads to workers are actually not unbound. Then hotplug
>>> state machine will fallback to undo and online cpu 0 again. Workers
>>> will be rebound unconditionally even if they are not unbound and
>>> trigger the warning in this progress.
>>
>> I'm a bit confused.  Are you saying that the hotplug statemachine may
>> invoke CPU_DOWN_FAILED w/o preceding CPU_DOWN on the same callback?
>
> I think so. CPU_DOWN_FAILED is detected in the process of CPU_DOWN_PREPARE

So any plan to apply? :-)

Regards,
Wanpeng Li

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-10 23:23     ` Wanpeng Li
@ 2016-05-11  7:34       ` Thomas Gleixner
  2016-05-11  8:05         ` Wanpeng Li
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Gleixner @ 2016-05-11  7:34 UTC (permalink / raw)
  To: Wanpeng Li
  Cc: Tejun Heo, linux-kernel, Wanpeng Li, Lai Jiangshan,
	Peter Zijlstra, Frédéric Weisbecker

On Wed, 11 May 2016, Wanpeng Li wrote:
> Hi Tejun,
> 2016-05-10 5:50 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>:
> > Cc Thomas, the new state machine author,
> > 2016-05-10 1:00 GMT+08:00 Tejun Heo <tj@kernel.org>:
> >> Hello,
> >>
> >> On Thu, May 05, 2016 at 09:41:31AM +0800, Wanpeng Li wrote:
> >>> The boot CPU handles housekeeping duty(unbound timers, workqueues,
> >>> timekeeping, ...) on behalf of full dynticks CPUs. It must remain
> >>> online when nohz full is enabled. There is a priority set to every
> >>> notifier_blocks:
> >>>
> >>> workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down
> >>>
> >>> So tick_nohz_cpu_down callback failed when down prepare cpu 0, and
> >>> notifier_blocks behind tick_nohz_cpu_down will not be called any
> >>> more, which leads to workers are actually not unbound. Then hotplug
> >>> state machine will fallback to undo and online cpu 0 again. Workers
> >>> will be rebound unconditionally even if they are not unbound and
> >>> trigger the warning in this progress.
> >>
> >> I'm a bit confused.  Are you saying that the hotplug statemachine may
> >> invoke CPU_DOWN_FAILED w/o preceding CPU_DOWN on the same callback?
> >
> > I think so. CPU_DOWN_FAILED is detected in the process of CPU_DOWN_PREPARE

Well, no. It's not detected.

If a down prepare callback fails, then DOWN_FAILED is invoked for all
callbacks which have successfully executed DOWN_PREPARE.

But, workqueue has actually two notifiers. One which handles
UP/DOWN_FAILED/ONLINE and one which handles DOWN_PREPARE.

Now look at the priorities of those callbacks:

    CPU_PRI_WORKQUEUE_UP	= 5
    CPU_PRI_WORKQUEUE_DOWN	= -5

So the call order on DOWN_PREPARE is:

   CB 1
   CB ...
   CB workqueue_up() -> Ignores DOWN_PREPARE
   CB ...
   CB X ---> Fails

So we call up to CB X with DOWN_FAILED

   CB 1
   CB ...
   CB workqueue_up() -> Handles DOWN_FAILED
   CB ...
   CB X-1

So the problem is that the workqueue stuff handles DOWN_FAILED in the up
callback, while it should do it in the down callback. Which is not a good idea
either because it wants to be called early on rollback...

Brilliant stuff, isn't it? The hotplug rework will solve this problem because
the callbacks become symetric, but for the existing mess, we need some
workaround in the workqueue code.

Thanks,

	tglx

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-11  7:34       ` Thomas Gleixner
@ 2016-05-11  8:05         ` Wanpeng Li
  2016-05-11 10:03           ` Thomas Gleixner
  0 siblings, 1 reply; 10+ messages in thread
From: Wanpeng Li @ 2016-05-11  8:05 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Tejun Heo, linux-kernel, Wanpeng Li, Lai Jiangshan,
	Peter Zijlstra, Frédéric Weisbecker

2016-05-11 15:34 GMT+08:00 Thomas Gleixner <tglx@linutronix.de>:
> On Wed, 11 May 2016, Wanpeng Li wrote:
>> Hi Tejun,
>> 2016-05-10 5:50 GMT+08:00 Wanpeng Li <kernellwp@gmail.com>:
>> > Cc Thomas, the new state machine author,
>> > 2016-05-10 1:00 GMT+08:00 Tejun Heo <tj@kernel.org>:
>> >> Hello,
>> >>
>> >> On Thu, May 05, 2016 at 09:41:31AM +0800, Wanpeng Li wrote:
>> >>> The boot CPU handles housekeeping duty(unbound timers, workqueues,
>> >>> timekeeping, ...) on behalf of full dynticks CPUs. It must remain
>> >>> online when nohz full is enabled. There is a priority set to every
>> >>> notifier_blocks:
>> >>>
>> >>> workqueue_cpu_up > tick_nohz_cpu_down > workqueue_cpu_down
>> >>>
>> >>> So tick_nohz_cpu_down callback failed when down prepare cpu 0, and
>> >>> notifier_blocks behind tick_nohz_cpu_down will not be called any
>> >>> more, which leads to workers are actually not unbound. Then hotplug
>> >>> state machine will fallback to undo and online cpu 0 again. Workers
>> >>> will be rebound unconditionally even if they are not unbound and
>> >>> trigger the warning in this progress.
>> >>
>> >> I'm a bit confused.  Are you saying that the hotplug statemachine may
>> >> invoke CPU_DOWN_FAILED w/o preceding CPU_DOWN on the same callback?
>> >
>> > I think so. CPU_DOWN_FAILED is detected in the process of CPU_DOWN_PREPARE
>
> Well, no. It's not detected.
>
> If a down prepare callback fails, then DOWN_FAILED is invoked for all
> callbacks which have successfully executed DOWN_PREPARE.
>
> But, workqueue has actually two notifiers. One which handles
> UP/DOWN_FAILED/ONLINE and one which handles DOWN_PREPARE.
>
> Now look at the priorities of those callbacks:
>
>     CPU_PRI_WORKQUEUE_UP        = 5
>     CPU_PRI_WORKQUEUE_DOWN      = -5
>
> So the call order on DOWN_PREPARE is:
>
>    CB 1
>    CB ...
>    CB workqueue_up() -> Ignores DOWN_PREPARE
>    CB ...
>    CB X ---> Fails
>
> So we call up to CB X with DOWN_FAILED
>
>    CB 1
>    CB ...
>    CB workqueue_up() -> Handles DOWN_FAILED
>    CB ...
>    CB X-1
>
> So the problem is that the workqueue stuff handles DOWN_FAILED in the up
> callback, while it should do it in the down callback. Which is not a good idea
> either because it wants to be called early on rollback...
>
> Brilliant stuff, isn't it? The hotplug rework will solve this problem because
> the callbacks become symetric, but for the existing mess, we need some
> workaround in the workqueue code.

Thanks for your reply, Thomas. :-)
Do you think the current version patch is the right fix/workaround for
the existing mess?

Regards,
Wanpeng Li

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-11  8:05         ` Wanpeng Li
@ 2016-05-11 10:03           ` Thomas Gleixner
  2016-05-11 10:21             ` Wanpeng Li
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Gleixner @ 2016-05-11 10:03 UTC (permalink / raw)
  To: Wanpeng Li
  Cc: Tejun Heo, linux-kernel, Wanpeng Li, Lai Jiangshan,
	Peter Zijlstra, Frédéric Weisbecker

On Wed, 11 May 2016, Wanpeng Li wrote:
> Do you think the current version patch is the right fix/workaround for
> the existing mess?

You might need something stateful related to the hotplug crap, as that
DOWN_FAILED/ONLINE case does a lot of stuff.

Though I leave it to Tejun to decided whether your proposed workaround is good
enough to fix the issue at hand.

Thanks,

	tglx

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

* Re: [PATCH] workqueue: fix rebind bound workers warning
  2016-05-11 10:03           ` Thomas Gleixner
@ 2016-05-11 10:21             ` Wanpeng Li
  0 siblings, 0 replies; 10+ messages in thread
From: Wanpeng Li @ 2016-05-11 10:21 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Tejun Heo, linux-kernel, Wanpeng Li, Lai Jiangshan,
	Peter Zijlstra, Frédéric Weisbecker

2016-05-11 18:03 GMT+08:00 Thomas Gleixner <tglx@linutronix.de>:
> On Wed, 11 May 2016, Wanpeng Li wrote:
>> Do you think the current version patch is the right fix/workaround for
>> the existing mess?
>
> You might need something stateful related to the hotplug crap, as that
> DOWN_FAILED/ONLINE case does a lot of stuff.

Yeah, I just mean the current version patch before your finial hotplug
rework. :-)

Regards,
Wanpeng Li

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

end of thread, other threads:[~2016-05-11 10:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-05  1:41 [PATCH] workqueue: fix rebind bound workers warning Wanpeng Li
2016-05-09  7:28 ` Wanpeng Li
2016-05-09 17:00 ` Tejun Heo
2016-05-09 21:50   ` Wanpeng Li
2016-05-09 22:14     ` Wanpeng Li
2016-05-10 23:23     ` Wanpeng Li
2016-05-11  7:34       ` Thomas Gleixner
2016-05-11  8:05         ` Wanpeng Li
2016-05-11 10:03           ` Thomas Gleixner
2016-05-11 10:21             ` Wanpeng Li

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.