Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4797526pxj; Wed, 9 Jun 2021 01:59:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV2kqGgGubw2ZR+KdIkDWkRc48CDZTza4cql1Xx3+KK+RxQksNkKePpp5IcKpGJa1TOR4a X-Received: by 2002:a17:907:9688:: with SMTP id hd8mr1441898ejc.314.1623229169208; Wed, 09 Jun 2021 01:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623229169; cv=none; d=google.com; s=arc-20160816; b=tVYNdTTjq+wkIkYVi28hJReMq1ylQRa97Eem12P2cmO9GUZxubrHjZJo+kuh16M0/5 tyO/pSrpmHaiVqNNtYCGBYdEB3ZJ1v8PK3Ptb63tyYZuM6/XDTx6EMxaCRS2CGJsHPNz /mIbLLjjFlKBTLoGI8R+rPQSqMZj0p8R4KtGVNK19pTwlxletJVoND1nk8zVSCjAvwB3 pMjpS+BEieI9oZME65x+jARlk/6oJlgwpxWPLhceZorowUxV/of3FfEtgzuKh/jn0e2F etdnPFuGmyLj+0rXSOUJ6Fb63kq+apZwt/+IGX8ttnZgpwxfd9nHjmxyp73qzKbLT+4G 0t4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=U5VkwIvxnbWpvc1/0iPLy1KO47p1rlWOYHzaaUg7B9s=; b=sfz1ns6cSYGUq7tSAgNbAwLKBpojEErX89EUtlqUUp7Jxrp63XJwAZ0DKhF3X0zf+b s8BuPUfTriz0eXy/CRfXjWO6Z0Q6TKNslxheFZXEMyeJpcOzrhUnfI201VsIobTHDgRP j9GzbKqjpzzcj3P06sRkhOyAg5vVbf9BkaNDJoT2T+BABntdt/wVzwfJhYTMTI6Cvf8B u8mBb6PIOMGDSxxfyhRQ2uB9c5XK8FJspQn5eB1E6dfzogg1MF5KEpsEwocL6ZP8mZ4b kjevnu7obogx9giUoIhOE2+iXoMfL/Zsxxg78MmcPeRe7QGJ6YdtqEr9GOsz+cvPa8iP ft8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bYHGUNWt; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 30si1768665ejg.621.2021.06.09.01.59.05; Wed, 09 Jun 2021 01:59:29 -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=@redhat.com header.s=mimecast20190719 header.b=bYHGUNWt; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233736AbhFHSVc (ORCPT + 99 others); Tue, 8 Jun 2021 14:21:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60278 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234005AbhFHSV3 (ORCPT ); Tue, 8 Jun 2021 14:21:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623176375; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=U5VkwIvxnbWpvc1/0iPLy1KO47p1rlWOYHzaaUg7B9s=; b=bYHGUNWtIPLpJAA/vMk38e2l0cirJBgAYBYA+RPt1KZ8I9H3ZGXLbfv5xg+KeEH3GoC5R8 RZmx4i70DMHCDqvJZeSRvi8XRYNnwjWd0uV7a400/I+02qBNSa8SvsHMs+hV/KuG+RZy3P 1hcWa7WvkcE1pnmXsj9IzsJ0WgwrmuU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-22-tcovvUVQM5arXn3eX-mMOA-1; Tue, 08 Jun 2021 14:19:32 -0400 X-MC-Unique: tcovvUVQM5arXn3eX-mMOA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 360561009446; Tue, 8 Jun 2021 18:19:29 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-115-60.ams2.redhat.com [10.36.115.60]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4933160853; Tue, 8 Jun 2021 18:19:23 +0000 (UTC) From: Florian Weimer To: Adhemerval Zanella Cc: Peter Zijlstra , Sebastian Andrzej Siewior , linux-kselftest@vger.kernel.org, joel@joelfernandes.org, Andrey Semashev , kernel@collabora.com, shuah@kernel.org, Davidlohr Bueso , Peter Oskolkov , corbet@lwn.net, krisman@collabora.com, malteskarupke@fastmail.fm, Ingo Molnar , Darren Hart , acme@kernel.org, Steven Rostedt , =?utf-8?Q?Andr=C3=A9?= Almeida , Thomas Gleixner , libc-alpha@sourceware.org, linux-api@vger.kernel.org, z.figura12@gmail.com, Nicholas Piggin , linux-kernel@vger.kernel.org, pgriffais@valvesoftware.com Subject: Re: [PATCH v4 00/15] Add futex2 syscalls References: <20210603195924.361327-1-andrealmeid@collabora.com> <1622799088.hsuspipe84.astroid@bobo.none> <1622853816.mokf23xgnt.astroid@bobo.none> <22137ccd-c5e6-9fcc-a176-789558e9ab1e@collabora.com> <20210608122622.oxf662ruaawrtyrd@linutronix.de> <74c7f1c1-ca15-1e86-a988-a4d349ad16ef@linaro.org> Date: Tue, 08 Jun 2021 20:19:21 +0200 In-Reply-To: <74c7f1c1-ca15-1e86-a988-a4d349ad16ef@linaro.org> (Adhemerval Zanella's message of "Tue, 8 Jun 2021 15:08:44 -0300") Message-ID: <878s3k9q3a.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Adhemerval Zanella: > Also currently we don't have a specific usage. The proposed patch to > add the 'pthread_mutex_lock_any' and 'pthreada_timedlock_any' [3] > also did not gave much detail in realword usages or how it can be > leveraged. The current rwlock implementation in glibc uses a torn 32-bit futex read which is part of an atomically updated 64-bit word. That's just really, really ugly, and I suspect we could make that go away with futex2. Thanks, Florian