Received: by 10.192.165.148 with SMTP id m20csp2143498imm; Thu, 3 May 2018 11:05:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpxx5Z9MHpxodtCtR1zsP5radDAQVOqSn8/h1jSh7h248ztoPsRNqlK+QH3IJQ1voESXUC7 X-Received: by 2002:a17:902:a704:: with SMTP id w4-v6mr24613048plq.5.1525370712612; Thu, 03 May 2018 11:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525370712; cv=none; d=google.com; s=arc-20160816; b=fsee2yJf1fS6tJd25ZDVlNw/MTuDD8FFs//8IC9oSrTvlHCfY1o5rooI1aLe+wsA95 NL8hxXZ9ZpnSuhgKfywsdsrPbzvlKM25ymJEPPVHOmFjnqmbZEhs1HlJnidq2/+mZdDI 2gUr8GDokKS/QikHTtDzJ4dq4hc8zvN4dJwshXPasYS4ErNArG4FW0UNJT+2LDaPEeia cjeGvS3WONruFaN/zisq/7mAcaxZofnfWsW8ns7IfEtjsqP3EoClinJiMKBtJ+OPdTED K23Bbplz9maZ5jsbMxBEGRrVjhhtZvWXXpqVgngJKmU3rHHy6zyWH2M7oFHqzkI5OILo eGHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=sRNMOd6yd18yWh316TxbHYjh87GOYBT2Cd02X50uz/A=; b=cC6O5zk+cNpCiXRnI+1GJT5Vkc8bJm4jUSHa3KC/bj/M7VFO8VDRfs0kziITGnwGyn oMaKiVyRO0rUCDXRNW1m+GFlVxg385Cltj8LcwaTLd8x3YynDv+cU8j+1V3xGHorn7k7 hNX6nbdB8KuAXeSAaT9JzXF1zKLwnzY51SBMeAfWSlIy7fJHs3r7UT/TCOndaTeE9pso mon1tQt7rJidvlLZD4LatAQv9E0GjNu4RsdglIO506wSu21Gkgaj6WbivqInpM4AcEV+ eaKP/8yy274jB/oNSHTH3rS0IrWb2KJnYtNycB6hVdPFTInZhxbXxqPoEn5bMzIh7oDe 7a4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si14055295pld.513.2018.05.03.11.04.58; Thu, 03 May 2018 11:05:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbeECSE3 (ORCPT + 99 others); Thu, 3 May 2018 14:04:29 -0400 Received: from mail.efficios.com ([167.114.142.138]:58178 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751132AbeECSEZ (ORCPT ); Thu, 3 May 2018 14:04:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 55E231BA15F; Thu, 3 May 2018 14:04:25 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id JQ5hrwtMqQa4; Thu, 3 May 2018 14:04:24 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id C28281BA15B; Thu, 3 May 2018 14:04:24 -0400 (EDT) X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UtjGpVqNZvmc; Thu, 3 May 2018 14:04:24 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id A75D81BA153; Thu, 3 May 2018 14:04:24 -0400 (EDT) Date: Thu, 3 May 2018 14:04:24 -0400 (EDT) From: Mathieu Desnoyers To: Daniel Colascione Cc: Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel , linux-api , Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes Message-ID: <702933118.10410.1525370664578.JavaMail.zimbra@efficios.com> In-Reply-To: References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> <660904075.9201.1525276988842.JavaMail.zimbra@efficios.com> <1718748931.10084.1525363941807.JavaMail.zimbra@efficios.com> Subject: Re: [RFC PATCH for 4.18 00/14] Restartable Sequences MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.142.138] X-Mailer: Zimbra 8.8.8_GA_2009 (ZimbraWebClient - FF52 (Linux)/8.8.8_GA_2009) Thread-Topic: Restartable Sequences Thread-Index: j2E8hgZac2IxhUNyhqgh0vRIxtvmiA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On May 3, 2018, at 12:22 PM, Daniel Colascione dancol@google.com wrote: > On Thu, May 3, 2018 at 9:12 AM Mathieu Desnoyers < > mathieu.desnoyers@efficios.com> wrote: >> By the way, if we eventually find a way to enhance user-space mutexes in > the >> fashion you describe here, it would belong to another TLS area, and would >> be registered by another system call than rseq. I proposed a more generic >> "TLS area registration" system call a few years ago, but Linus told me he >> wanted a system call that was specific to rseq. If we need to implement >> other use-cases in a TLS area shared between kernel and user-space in a >> similar fashion, the plan is to do it in a distinct system call. > > If we proliferate TLS areas; we'd have to register each one upon thread > creation, adding to the overall thread creation path. There's already a > provision for versioning the TLS area. What's the benefit of splitting the > registration over multiple system calls? See the original discussion thread at https://lkml.org/lkml/2016/4/7/502 Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com