mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Lameter <cl@linux.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	stable <stable@vger.kernel.org>,
	Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
Subject: Re: [GIT PULL] ring-buffer: Replace this_cpu_*() with __this_cpu_*()
Date: Tue, 19 May 2015 11:20:23 -0500 (CDT)	[thread overview]
Message-ID: <alpine.DEB.2.11.1505191118040.28327@gentwo.org> (raw)
In-Reply-To: <20150519114201.39c19d61@gandalf.local.home>

On Tue, 19 May 2015, Steven Rostedt wrote:

> On Tue, 19 May 2015 10:35:32 -0500 (CDT)
> Christoph Lameter <cl@linux.com> wrote:
>
> > On Thu, 19 Mar 2015, Steven Rostedt wrote:
> >
> > > On Thu, 19 Mar 2015 15:16:25 -0700
> > > Linus Torvalds <torvalds@linux-foundation.org> wrote:
> > >
> > > > So I don't think the ring-buffer change is necessarily _wrong_, but if
> > > > this is a performance issue, why don't we just fix it up for the
> > > > generic case rather than for just one user?
> > >
> > > I totally agree with your analysis, but it's up to Christoph to come up
> > > with an answer to your questions.
> >
> > Something beyond: Do not use this_cpu_* when preemption is already
> > off but use __this_cpu_*?
>
> I think the question was, why exactly does the generic this_cpu_read()
> require disabling preemption? What breaks if it is not disabled?

Ok I answered that before. There is a cache line population/eviction
issue (because it may happen on the wrong cache) but basically I think
its mostly there for symmetries sake. We could remove
this_cpu_read/write and let __this_cpu_read()/__this_cpu_write be used in non
preemptible contexts.


  reply	other threads:[~2015-05-19 16:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19 22:02 Steven Rostedt
2015-03-19 22:16 ` Linus Torvalds
2015-03-19 22:34   ` Steven Rostedt
2015-03-19 22:42     ` Steven Rostedt
2015-05-19 15:35     ` Christoph Lameter
2015-05-19 15:42       ` Steven Rostedt
2015-05-19 16:20         ` Christoph Lameter [this message]
2015-03-23 17:48   ` Steven Rostedt
2015-03-24 18:47     ` Christoph Lameter
2015-03-24 19:37       ` Christoph Lameter
2015-05-18 19:50   ` Linus Torvalds
2015-05-18 20:40     ` Steven Rostedt
2015-03-20  7:26 ` Uwe Kleine-König
2015-03-20 11:55   ` Steven Rostedt

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=alpine.DEB.2.11.1505191118040.28327@gentwo.org \
    --to=cl@linux.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=stable@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /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®