mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Michael wang <wangyun@linux.vnet.ibm.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>,
	Ingo Molnar <mingo@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [sched/get_online_cpus] INFO: task swapper/0:1 blocked for more than 120 seconds.
Date: Mon, 11 Nov 2013 17:20:22 +0100	[thread overview]
Message-ID: <20131111162022.GB21461@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <52808B7F.6000309@linux.vnet.ibm.com>

On Mon, Nov 11, 2013 at 03:47:11PM +0800, Michael wang wrote:
> Hi, Fengguang
> 
> On 11/10/2013 06:16 PM, Fengguang Wu wrote:
> > Greetings,
> > 
> > I got the below dmesg and the first bad commit is
> 
> I guess this will disappear when '!CONFIG_RCU_BOOST'...
> 
> AFAIK, if the rsp was in boost mode, we count on smpboot-thread
> 'rcu_cpu_thread_spec' to finish the callback, which will be
> parked before do sync-rcu inside _cpu_down(), if that was true,
> then the sync will never finish...
> 
> May be some brainless fix like this?
> 
> 
> 
> diff --git a/kernel/cpu.c b/kernel/cpu.c
> index 63aa50d..aa24338 100644
> --- a/kernel/cpu.c
> +++ b/kernel/cpu.c
> @@ -306,7 +306,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen)
>                                 __func__, cpu);
>                 goto out_release;
>         }
> -       smpboot_park_threads(cpu);
>  
>         /*
>          * By now we've cleared cpu_active_mask, wait for all preempt-disabled
> @@ -321,6 +320,8 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen)
>  #endif
>         synchronize_rcu();
>  
> +       smpboot_park_threads(cpu);
> +
>         /*
>          * So now all preempt/rcu users must observe !cpu_active().
>          */

Good thinking.. Wu did this cure stuff?

  reply	other threads:[~2013-11-11 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-10 10:16 Fengguang Wu
2013-11-11  1:26 ` Fengguang Wu
2013-11-11  7:47 ` Michael wang
2013-11-11 16:20   ` Peter Zijlstra [this message]
2013-11-12  9:55     ` Fengguang Wu
2013-11-13  2:18       ` Michael wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131111162022.GB21461@twins.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=fengguang.wu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=wangyun@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®