public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Turner <pjt@google.com>, Andrew Hunter <ahh@google.com>,
	Ben Maurer <bmaurer@fb.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
	Josh Triplett <josh@joshtriplett.org>,
	Lai Jiangshan <laijs@cn.fujitsu.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [RFC PATCH] percpu system call: fast userspace percpu critical sections
Date: Mon, 25 May 2015 20:21:02 +0000 (UTC)	[thread overview]
Message-ID: <1331844166.7646.1432585262356.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <CA+55aFyVWewb7+cdo1wucYQuQXd_C5xBp_DyJFZWa+=abciNDA@mail.gmail.com>

----- Original Message -----
> On Thu, May 21, 2015 at 7:44 AM, Mathieu Desnoyers <mathieu.desnoyers@efficios.com> wrote:
> > Expose a new system call allowing userspace threads to register
> > a TLS area used as an ABI between the kernel and userspace to
> > share information required to create efficient per-cpu critical
> > sections in user-space.
> 
> Not a way in hell.
> 
> You do user accesses from preempt notifiers.
> 
> That's so ludicrously broken that it's not even funny.
> 
> This patch needs to die, and never *ever* be resurrected. Put a stake
> in it, and bury it 6ft deep.

There is no need to fetch your vampire hunting kit just yet. ;-)

As an RFC patch, this should be considered as a prototype, nothing more.
I was mainly expecting feedback on the general approach, and trying to
put some pressure on Paul Turner, so he would post the patches he
talked about back in 2013.

Peter Zijlstra already pointed out that I should move those user accesses
before return to userspace.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

  reply	other threads:[~2015-05-25 20:21 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 14:44 [RFC PATCH] percpu system call: fast userspace percpu critical sections Mathieu Desnoyers
2015-05-21 15:46 ` Josh Triplett
2015-05-21 18:58   ` Mathieu Desnoyers
2015-05-21 18:32 ` Peter Zijlstra
2015-05-21 19:08   ` Mathieu Desnoyers
2015-05-21 19:31     ` Paul Turner
2015-05-21 20:07 ` Paul Turner
2015-05-22 20:12   ` Mathieu Desnoyers
2015-05-22 20:26 ` Michael Kerrisk
2015-05-22 20:53   ` Andy Lutomirski
2015-05-22 21:34     ` Mathieu Desnoyers
2015-05-22 22:24       ` Andy Lutomirski
2015-05-23 17:09         ` Mathieu Desnoyers
2015-05-23 19:15           ` Andy Lutomirski
2015-05-25 18:30             ` Mathieu Desnoyers
2015-05-25 18:54               ` Andy Lutomirski
2015-05-26 19:57                 ` Andy Lutomirski
2015-05-26 21:04                   ` Mathieu Desnoyers
2015-05-26 21:18                     ` Andy Lutomirski
2015-05-26 21:44                       ` Andy Lutomirski
2015-05-26 20:38                 ` Mathieu Desnoyers
2015-05-26 20:58                   ` Andy Lutomirski
2015-05-26 21:20                 ` Andi Kleen
2015-05-26 21:26                   ` Andy Lutomirski
2015-05-22 22:06     ` Andrew Hunter
2015-05-23 20:11 ` Linus Torvalds
2015-05-25 20:21   ` Mathieu Desnoyers [this message]
2015-05-29 16:46     ` Christoph Lameter

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=1331844166.7646.1432585262356.JavaMail.zimbra@efficios.com \
    --to=mathieu.desnoyers@efficios.com \
    --cc=ahh@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=bmaurer@fb.com \
    --cc=josh@joshtriplett.org \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=peterz@infradead.org \
    --cc=pjt@google.com \
    --cc=rostedt@goodmis.org \
    --cc=torvalds@linux-foundation.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