public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <fweisbec@gmail.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Dave Jones <davej@redhat.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: WARN_ON_ONCE(in_nmi()) hit in irq_work_queue_on
Date: Thu, 7 Aug 2014 15:18:42 +0200	[thread overview]
Message-ID: <20140807131840.GC19662@localhost.localdomain> (raw)
In-Reply-To: <20140807131536.GU9918@twins.programming.kicks-ass.net>

On Thu, Aug 07, 2014 at 03:15:36PM +0200, Peter Zijlstra wrote:
> On Thu, Aug 07, 2014 at 02:58:55PM +0200, Frederic Weisbecker wrote:
> > On Thu, Aug 07, 2014 at 10:13:21AM +0200, Peter Zijlstra wrote:
> > > On Thu, Aug 07, 2014 at 01:44:58AM +0200, Frederic Weisbecker wrote:
> > > > In fact the problem has arised since the recent irq work patches I did.
> > > 
> > > No, those just added the WARN, previously we send the resched IPI, and
> > > that's equally wrong from NMI context.
> > 
> > Well the scheduler IPI was rather used for remote kicks before we had remote irq
> > work. This includes local kicks as well as the caller could need to kick
> > anywhere. As in inc_nr_running().
> > 
> > But for strict local kicks, as in perf, we were using tick_nohz_full_kick() which has
> > been using irq work for a while. But it got broken when we replaced it to call irq_work_queue_on
> > instead of irq_work_queue.
> 
> OK, clearly I made a mess of things in my head ;-)

I'm a bit responsible for that mess since I created quite some flavours of nohz kicks
all around :)

But now they should be more unified.

      reply	other threads:[~2014-08-07 13:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-06 16:21 WARN_ON_ONCE(in_nmi()) hit in irq_work_queue_on Dave Jones
2014-08-06 16:46 ` Peter Zijlstra
2014-08-06 16:56   ` Peter Zijlstra
2014-08-06 17:01     ` Peter Zijlstra
2014-08-06 23:44       ` Frederic Weisbecker
2014-08-07  8:13         ` Peter Zijlstra
2014-08-07 12:58           ` Frederic Weisbecker
2014-08-07 13:15             ` Peter Zijlstra
2014-08-07 13:18               ` Frederic Weisbecker [this message]

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=20140807131840.GC19662@localhost.localdomain \
    --to=fweisbec@gmail.com \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /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