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: Ingo Molnar <mingo@elte.hu>, Paul Mackerras <paulus@samba.org>,
	stephane eranian <eranian@googlemail.com>,
	Corey J Ashford <cjashfor@us.ibm.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 4/2] perf_counter: Fix swcounter context invariance
Date: Thu, 13 Aug 2009 10:29:01 +0200	[thread overview]
Message-ID: <20090813082900.GB6001@nowhere> (raw)
In-Reply-To: <1250151778.10001.67.camel@twins>

On Thu, Aug 13, 2009 at 10:22:58AM +0200, Peter Zijlstra wrote:
> On Thu, 2009-08-13 at 10:05 +0200, Frederic Weisbecker wrote:
> > On Thu, Aug 13, 2009 at 09:51:55AM +0200, Peter Zijlstra wrote:
> > > Not really related to this topic, but it needs posting anyway.
> > > 
> > > ---
> > > 
> > > Subject: perf_counter: Fix swcounter context invariance
> > > From: Peter Zijlstra <a.p.zijlstra@chello.nl>
> > > Date: Fri Aug 07 13:29:13 CEST 2009
> > > 
> > > perf_swcounter_is_counting() uses a lock, which means we cannot use
> > > swcounters from NMI or when holding that particular lock, this is
> > > unintended.
> > > 
> > > The below removes the lock, this opens up race window, but not worse
> > > than the swcounters already experience due to RCU traversal of the
> > > context in perf_swcounter_ctx_event().
> > > 
> > > Cc: Paul Mackerras <paulus@samba.org>
> > > Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> > 
> > 
> > 
> > As a side effect, it's possible this also fixes the hard lockups
> > while opening a lockdep tracepoint counter.
> 
> It will -- not a side-effect at all, intended consequence :-)


Great then! Important fix for .31 :-)


  reply	other threads:[~2009-08-13  8:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-12 15:35 [PATCH 0/2] perf_counter: fix the group mess Peter Zijlstra
2009-08-12 15:35 ` [PATCH 1/2] perf: rework the whole read vs group stuff Peter Zijlstra
2009-08-12 15:35 ` [PATCH 2/2] perf_counter: Fix an ipi-deadlock Peter Zijlstra
2009-08-12 15:54 ` [PATCH 0/2] perf_counter: fix the group mess stephane eranian
2009-08-12 16:01   ` Peter Zijlstra
2009-08-13  7:51 ` [PATCH 3/2] perf tools: Fixup read ABI breakage Peter Zijlstra
2009-08-13  7:51 ` [PATCH 4/2] perf_counter: Fix swcounter context invariance Peter Zijlstra
2009-08-13  8:05   ` Frederic Weisbecker
2009-08-13  8:22     ` Peter Zijlstra
2009-08-13  8:29       ` Frederic Weisbecker [this message]
2009-08-13 10:21   ` [tip:perfcounters/urgent] " tip-bot for Peter Zijlstra

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=20090813082900.GB6001@nowhere \
    --to=fweisbec@gmail.com \
    --cc=cjashfor@us.ibm.com \
    --cc=eranian@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulus@samba.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