Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4109062pxj; Tue, 8 Jun 2021 06:43:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4+AY3jOKdo5c5c5hTxCZ76g9WU5ODkXIflzq8Mi0fxmUKwMZWz9voDhKOYMwmsAw5Gfa5 X-Received: by 2002:a17:906:e253:: with SMTP id gq19mr24084559ejb.138.1623159838869; Tue, 08 Jun 2021 06:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623159838; cv=none; d=google.com; s=arc-20160816; b=Ikn2fOt1l2YGbD/REOUOpo7cecP9mfp3VqpBhGqn4gmKKj6iQTz320xxZ7ysOwSCrC 02YaNVm27v8N+PQiIpOQ9upsnG1i3bupXj/nOI0rDRodGc6KPPAkC8Ul5VOA0eFMkZOf F9W/vtRioeyt/8Ydn1J+e4i1Tb1ePzVX4KvImPj59L2ICX6wUNyklL7nOZ8+jNvYPHl3 t+hPIsjn8sJN0V62wtaoMxHnUhJa+yEknco147aOc6OwF0qJ5sIbxzQ8VYo7HpuFHt9X oa0r10mK0nUD/JQiLE57CJYnvN8d+QlM7kuwuRiEF6aAQcMN4GEyvVTeLc1b4lq2u098 i99Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=8CP8awcg95oWuVc3U+udiIOQfXQwkD1ELykPoeSDRf0=; b=L5KY0s2Letu0zQUUd9fNRtK1l5tq1wbSBSF+j0sinCmgQpU3H6EX6iqNMXjmJzaiWD IqWvVrVpFjWZtGmUDrVNfUTYSNzEkvO3gwaloIDmLhL+cCvT3rOsB+K/aAsA7ythLzvf 1K5xvNcXlF1sYnmZxX7lmfYRlzjcbQjxwow1S54Bp0NyfSlCM8STgTQXN6n5z6UQZeaQ XX0o7zOr6hQgdHU3xFYqm1UvTpHX84UFrZwCuWzHff/Yglw7k7scrNi6CP7+mi0Xr6vW xpntv6uzsbnHocjxFKWruQIljmAo06HbSqHVQGkAbytHHpFTw51/A2hKSosthFlu5vF3 HY0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iJPUF2zR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si17312801edz.65.2021.06.08.06.43.35; Tue, 08 Jun 2021 06:43:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iJPUF2zR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232797AbhFHNnO (ORCPT + 99 others); Tue, 8 Jun 2021 09:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232403AbhFHNnL (ORCPT ); Tue, 8 Jun 2021 09:43:11 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4066AC061574; Tue, 8 Jun 2021 06:41:11 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id r198so28819593lff.11; Tue, 08 Jun 2021 06:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8CP8awcg95oWuVc3U+udiIOQfXQwkD1ELykPoeSDRf0=; b=iJPUF2zRKrL8aPbnq6ruVV7uDa2MAPDQ71g9cFK6NodFwJHSxT0o3hecmaPpudVxod r8galZFH0J98fnH+ymQDnhT3nnESaD7oxf6oLPHGC1N42ffQeogmS4PKE5oKcvZ77Not OmBNYipVRrD2IZcWzBoEgHL+cATFntc0NFLtV5I7Boag5rW+tc0fnvAK5iuTu9miHIff ieOVD/5njM7BzHWHQHXNFYwNoVFAOO5joQfIUFXOHvoVMxFwD2tFujpalxMwhd/42O2B sFYKNfz1dniBt59rXk9hFauVvFLqlUg8kdoX9Q1hBYgBeHOQclht6iyXAPFgYtBVgD9p 3yFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8CP8awcg95oWuVc3U+udiIOQfXQwkD1ELykPoeSDRf0=; b=Fz5Nh3C+X/wjOSca+eZgAtSiNvxEMChl0uBfgNieDK9KX+ztAHc24P/zGVLBFPBuVo UdFqYLcNE0TLvj0Y4equj219XY8V/Eub6BCxQgXa77MtXP82SKxt8oNQnkJwUZKz913A ZQV2EKtA8qYrNdvYDlRVf/45Le0+KAVz/AGURFcQw1tnI7hXo4lZquK5fb2AIcMVmef+ OPD8kTeB4kKkdpufeLmkgqMAIRGWG5E/XhE+ums6J4eJKqqorRB2ZPO5+DmFqbgU1lEp HpcLvU6Pwh9zcoa3FGlGCvTe8gqf3We8YP8JtqpNlhpr/tCBm2xrDC+vnJsa0whsq7dM n8fA== X-Gm-Message-State: AOAM533/FnvpalD4Yfqyf81d4AV5DUw5cgZ5i0PC0SA0mIZspfg6+Mgl dB5xhiNcTQ4bvBdcLHzankM= X-Received: by 2002:ac2:5084:: with SMTP id f4mr15801044lfm.466.1623159669392; Tue, 08 Jun 2021 06:41:09 -0700 (PDT) Received: from [192.168.1.2] (broadband-5-228-51-184.ip.moscow.rt.ru. [5.228.51.184]) by smtp.gmail.com with ESMTPSA id h4sm494809ljk.4.2021.06.08.06.41.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Jun 2021 06:41:08 -0700 (PDT) Subject: Re: [PATCH v4 00/15] Add futex2 syscalls To: Greg KH Cc: Nicholas Piggin , =?UTF-8?Q?Andr=c3=a9_Almeida?= , acme@kernel.org, Sebastian Andrzej Siewior , corbet@lwn.net, Davidlohr Bueso , Darren Hart , fweimer@redhat.com, joel@joelfernandes.org, kernel@collabora.com, krisman@collabora.com, libc-alpha@sourceware.org, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, malteskarupke@fastmail.fm, Ingo Molnar , Peter Zijlstra , pgriffais@valvesoftware.com, Peter Oskolkov , Steven Rostedt , shuah@kernel.org, Thomas Gleixner , z.figura12@gmail.com References: <1622853816.mokf23xgnt.astroid@bobo.none> <6d8e3bb4-0cef-b991-9a16-1f03d10f131d@gmail.com> <1622980258.cfsuodze38.astroid@bobo.none> <1623114630.pc8fq7r5y9.astroid@bobo.none> <8fa8b7fd-58ae-9467-138d-4ff4f32f68f7@gmail.com> <3fca0afa-d9db-a176-aad1-ff7db21ba4a2@gmail.com> From: Andrey Semashev Message-ID: Date: Tue, 8 Jun 2021 16:41:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/8/21 4:27 PM, Greg KH wrote: > On Tue, Jun 08, 2021 at 04:18:42PM +0300, Andrey Semashev wrote: >> On 6/8/21 3:35 PM, Greg KH wrote: >>> On Tue, Jun 08, 2021 at 03:06:48PM +0300, Andrey Semashev wrote: >>>> On 6/8/21 2:13 PM, Greg KH wrote: >>> >>>>> So what's keeping the futex2 code from doing all that futex1 does so >>>>> that the futex1 code can be deleted internally? >>>> >>>> I think, André will answer this, but my guess is, as stated above, this is a >>>> lot of work and time while the intermediate version is already useful. >>> >>> useful to who? I still do not understand what users will be needing >>> this. All I can tell is a single userspace program wants to use it, and >>> that is a fork from the real project it was based on and that the >>> maintainers have no plan to merge it back. >>> >>> So who does need/want this? >> >> I mentioned C++ std::atomic and Boost.Atomic before. Those need variable >> sized futexes. > > And has anyone converted them to use this new api to see if it works > well or not? > > As was pointed out to me numerous times when I tried to propose > readfile(), you need a real user that can show and prove it is needed > before we can take new syscalls, especially complex beasts like this > one. André has mentioned that he tested the patch set with patched Wine and glibc. I didn't patch Boost.Atomic or std::atomic, but it doesn't look to be problematic. The only difference it would make there is to enable futex2-based implementation for multiple atomic sizes and set up flags to indicate the futex size, instead of only enabling futex-based implementation for 32-bit atomics.