From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753820AbdJNEFO (ORCPT ); Sat, 14 Oct 2017 00:05:14 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:44969 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753393AbdJNEFM (ORCPT ); Sat, 14 Oct 2017 00:05:12 -0400 X-Google-Smtp-Source: AOwi7QCkE/WEzhvDIAUyq6qzJ/0vYI6qyKyaeZb0Upu8Bjx333sOLXvj4GV9LzFvlTbf2WjpP497H1TPCgexqEbqo7o= MIME-Version: 1.0 In-Reply-To: <20171014030116.GM2482@two.firstfloor.org> References: <20171012230326.19984-1-mathieu.desnoyers@efficios.com> <20171012230326.19984-2-mathieu.desnoyers@efficios.com> <20171014030116.GM2482@two.firstfloor.org> From: Linus Torvalds Date: Fri, 13 Oct 2017 21:05:11 -0700 X-Google-Sender-Auth: tr9S4eQ4t_9PN1kyYm0-0z0SoVc Message-ID: Subject: Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call To: Andi Kleen Cc: Ben Maurer , Mathieu Desnoyers , David Goldblatt , Qi Wang , "Paul E. McKenney" , Boqun Feng , Peter Zijlstra , Paul Turner , Andrew Hunter , Andy Lutomirski , Dave Watson , Josh Triplett , Will Deacon , Linux Kernel Mailing List , Thomas Gleixner , Chris Lameter , Ingo Molnar , "H. Peter Anvin" , Steven Rostedt , Andrew Morton , Russell King , Catalin Marinas , Michael Kerrisk , Alexander Viro , Linux API Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 13, 2017 at 8:01 PM, Andi Kleen wrote: > > As far as I can see the current model fundamentally only works for > one user per process (because there is only a single range and abort IP) No, it should work for libraries, you just need to always initialize the proper start/commit/abort IP's for every transaction. Then everybody should be fine. So I _think_ it's all good. But I really would want to see that actually being the case. Linus From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call Date: Fri, 13 Oct 2017 21:05:11 -0700 Message-ID: References: <20171012230326.19984-1-mathieu.desnoyers@efficios.com> <20171012230326.19984-2-mathieu.desnoyers@efficios.com> <20171014030116.GM2482@two.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20171014030116.GM2482@two.firstfloor.org> Sender: linux-kernel-owner@vger.kernel.org To: Andi Kleen Cc: Ben Maurer , Mathieu Desnoyers , David Goldblatt , Qi Wang , "Paul E. McKenney" , Boqun Feng , Peter Zijlstra , Paul Turner , Andrew Hunter , Andy Lutomirski , Dave Watson , Josh Triplett , Will Deacon , Linux Kernel Mailing List , Thomas Gleixner , Chris Lameter , Ingo Molnar , "H. Peter Anvin" , Steven Rostedt , Andrew Morton List-Id: linux-api@vger.kernel.org On Fri, Oct 13, 2017 at 8:01 PM, Andi Kleen wrote: > > As far as I can see the current model fundamentally only works for > one user per process (because there is only a single range and abort IP) No, it should work for libraries, you just need to always initialize the proper start/commit/abort IP's for every transaction. Then everybody should be fine. So I _think_ it's all good. But I really would want to see that actually being the case. Linus