Received: by 10.192.165.148 with SMTP id m20csp2040616imm; Thu, 3 May 2018 09:22:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrnOOlq2UBnIPbSoO8W/XwiDJwNRd/Amqj2i974LpzJScwXT1Af7ZcKOCxvK3fuFZ07CAYo X-Received: by 2002:a17:902:10c:: with SMTP id 12-v6mr24691362plb.252.1525364563643; Thu, 03 May 2018 09:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525364563; cv=none; d=google.com; s=arc-20160816; b=XehY5F8S2R9wiagpmqo4/vU4G2wOyRA6MgL4hWnfvj/XCZlpuQ1FmZq8tnz0bl2gEM cthKWFKGcbDx7lKj+A9FwTvtniD5Tthldq38xjzhlK3yv5kjNwjvz1DxbeeZ07BcpBkM tGPkYBwransyZgu4k9DsDgWYDNDTyF7uiYrVkzwY7BQe+tKl1X14k1/FFDjacRUb5y0x 3+h+maJeFIk/Zn5lsPhJc0Tu81ZYFPSfGWvXFrYUqwyAJctDcD9MHZ4XoMlWV1bDIIkE 1J/tiNM/V+Oybwp3/QHIQoXHoK3ygqkZQyZtKQG9ZyMsqQa4MyttBKrg0HYgFxLFrM/w qK6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=qjmkzQt2emBB+zg2xs8FHqXDg/iLl/1eE2fqdrvhjoo=; b=AKkXNaCkzCTVs9hjIAJf9dFVxXYAdYHPFbUSJw7yiOXn1ZQYmxu17SaunmV6mskJqw 3Fnw7Fxgd6HHqbQijVRufvnFqLIXf7U9nv16M96xblZqViFBnHfRZQQihlf23Qhc1Imr VjZ8ANYPg4zDKD+qTc71DfJ/+9bindaif5LYLXgM7Z6niBK1aAZqwZWSIcAa9vLxt2+8 GE3eYqn2Aihnyjmy09ao6XO1FFsIl7kAgPqJtNstMucsHb/dD6VYECUDwfUqkC+BW9Xs hBKsL9q+pHBO3/xGGSh9Iw5wz0S87j01+84i9Fr8oRHikHWS2q+TqEcEsGAnmhtASFJi I2Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BUOUMp24; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b97-v6si14619726plb.135.2018.05.03.09.22.29; Thu, 03 May 2018 09:22:43 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=BUOUMp24; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751351AbeECQWP (ORCPT + 99 others); Thu, 3 May 2018 12:22:15 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:39059 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751121AbeECQWN (ORCPT ); Thu, 3 May 2018 12:22:13 -0400 Received: by mail-io0-f178.google.com with SMTP id r9-v6so22322297iod.6 for ; Thu, 03 May 2018 09:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qjmkzQt2emBB+zg2xs8FHqXDg/iLl/1eE2fqdrvhjoo=; b=BUOUMp24OinCzdBBHihgds9sim17DG7gr9OUaQZ7Hv8AXm/YwTILcWEE9auA0SoGzT 1Fv/sX92wVRCNIGSpXVN0GmfzPlncTdsRUqCOCXHsi20f/cGJGodDv6TlJrsW/a9/8xg D29aw2mzUcURg8upXhuAEQFjKmlFno+hGMkFSQ41EihBMkwgiN3GOKxgyvWIsIng/qZl EpFGErgl63puK6y5cJxm3Iz4mqPUJMMari9VzuDj7Eaj7rzsD08M3pmenYLCN9UBW472 2fm5lAStUafrIyosl0a1OJ0LcAIjyXDDePBLr/x/vfrMg9kBgPX7M6RQLmyvkRvEoreZ 1JLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qjmkzQt2emBB+zg2xs8FHqXDg/iLl/1eE2fqdrvhjoo=; b=ihsFeubEmxnBaW4aOhAi9C1aPX7e/GdRnrUCm3eMLCehHjzm3oym7zIN/zV1Jr8HQj uSSPGVnhYY49q6fya6/94TedkfiSbcIB5ufwLaz4RWBOOhFO0amqHV3qTIIJJyaCsjdz zqbZ1HB7FWM45BROq9fnOJQmhxwt6ARfW2uW3Zfd5/lNZsBzTo+kBAKv9xXEM77goJBl Stpnz5B4It/4dGXvuOWnamYksCeW1nwoD4u4hE4ATsynjua96uwsFYWeMcF7W5jq2ZJW q/j3XzXDnLzbs6CvtAVyGDuTKL3/Gr4SIiSe54h9sDjFW9BwpHgv9Pp0rdeTG2yB7WsO dbMg== X-Gm-Message-State: ALQs6tC9NEyojYQdneKTze0M0vm3ATfGyPjeuxchV8RZJvvW3aS3iudY E4bh5V4CwEBbXeLAfiCPQNOVUz5GIrBldLnT9PDp+A== X-Received: by 2002:a6b:c585:: with SMTP id v127-v6mr26914338iof.85.1525364532271; Thu, 03 May 2018 09:22:12 -0700 (PDT) MIME-Version: 1.0 References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> <660904075.9201.1525276988842.JavaMail.zimbra@efficios.com> <1718748931.10084.1525363941807.JavaMail.zimbra@efficios.com> In-Reply-To: <1718748931.10084.1525363941807.JavaMail.zimbra@efficios.com> From: Daniel Colascione Date: Thu, 03 May 2018 16:22:00 +0000 Message-ID: Subject: Re: [RFC PATCH for 4.18 00/14] Restartable Sequences To: Mathieu Desnoyers Cc: Peter Zijlstra , Paul McKenney , boqun.feng@gmail.com, luto@amacapital.net, davejwatson@fb.com, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Andrew Morton , linux@arm.linux.org.uk, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, Andrew Hunter , andi@firstfloor.org, cl@linux.com, bmaurer@fb.com, rostedt@goodmis.org, josh@joshtriplett.org, torvalds@linux-foundation.org, catalin.marinas@arm.com, will.deacon@arm.com, Michael Kerrisk-manpages , Joel Fernandes Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?