Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp505747pxy; Wed, 5 May 2021 07:26:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymygS2SAFycIp2HERDAz8P8kQsPnXI/wyeW6Uxp7arlBuhgb9UUrEYOMkfVI+Cb1TDDPep X-Received: by 2002:a05:6402:17d8:: with SMTP id s24mr29530633edy.155.1620224764221; Wed, 05 May 2021 07:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620224764; cv=none; d=google.com; s=arc-20160816; b=biY1UtYZo0wFAOAmNep971UEFlgY4WeJG3oyObPlHniid10IP+q9GeE8RJs7YOqGE0 m5FSPXSkl3DUwQWR+aWSZhCu1g6n12gzXKUVWSe9vKv3OVm+ctlbJk84ePQAd2dWf3YF hZYksv6tHEBopdwKCljwBmrxoi1uCewP4h7E4i0VFdHUTaNGsydcC5cMuMiTYhG0btJs Oc4O3OXpUFyBkthSDAEHminBOQE8XHkxT9pnkje6pMJ+p82QDnwrGS72CMMjq+DVX78y 7PZ5htjZ9BJ31HA683GOK065ZDW/Cy+O80LeXDpQ2s8sB6CIt9ztMPOunNkaGI41dQeM J6pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=uqMX/kcgxstoPmvY8Wd/zciVA9qFnbv7Kyz4Ssl4A3I=; b=NOuWH8lk4rdUOMzfZ2nkMJMrL6DUqruiXEa9AsO5q7C66t2psG00ahMBZZTQCE3HhK 0k4mB85tBlVpa5dsa6wz/Mp2lBMzwQs5JMH2Ad/Ts870FLF5p/hul6nUD6eGg3GVWr+G b5TLbcESxsCT0AsVD4YAi+1x4jpm62cPQ36ZoC2LKF/1OiMCkMkVKNT5wxcfHKk/xj2z 2a9t+Sk5Bn5y0on6lOPrXB8YHEOClNKeKzt52Ol+6ppmoPp6SwH1h/uRhlBmozZLeV9l HJReWNRveW//3D1Zy/kkTQ4NdvmFJHV6yF2/E0PLylyQEB7klKsMokjENiB6QXRVe99Z LdZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="q+jPs/ib"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=NLPrA9n0; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do11si4882426ejc.354.2021.05.05.07.25.38; Wed, 05 May 2021 07:26:04 -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=@linutronix.de header.s=2020 header.b="q+jPs/ib"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=NLPrA9n0; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233110AbhEEOYu (ORCPT + 99 others); Wed, 5 May 2021 10:24:50 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60826 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233054AbhEEOYu (ORCPT ); Wed, 5 May 2021 10:24:50 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620224632; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uqMX/kcgxstoPmvY8Wd/zciVA9qFnbv7Kyz4Ssl4A3I=; b=q+jPs/ibe1vFk14EzFP32RiEk+khuaDqb1sbvNsjnQdnLzVO9H5M/j11YHjqJZ0ugu+3mq 7vTrifLgOeKwo0MstJ/rGJg0BN9//HwaPpFyVUY7wCuPJJC7QOd6Aa4c8ZGjl6fJtKelcS 8XViEY7UoTcKoLhOG8ha5H4ebq/rj/6vA8k03uyp/9beMrt6OcK+RFY5+fYXTOxp8+5zPk dNqZr62L7G9VKFLm81KKGIDkjm0NdjRUV0k0Kj+GfpAIYnAnxGwPf2fJ9xDXx3lstQ86Mn 1P3lsZVrSy/wRkewtUe7ki+0ZhHU8MkkdF9kXMHxo6it1o2fni9KgvR2+1dCSQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620224632; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uqMX/kcgxstoPmvY8Wd/zciVA9qFnbv7Kyz4Ssl4A3I=; b=NLPrA9n0vhFqdef38DyhJqDycsiHukl0bJ1bmOq18k3B4jnmKVYN9rHGW0uCCIAnbFOIgb ZvE6N0pDbcaxsfBg== To: Peter Zijlstra , =?utf-8?Q?Andr=C3=A9?= Almeida Cc: Ingo Molnar , Darren Hart , linux-kernel@vger.kernel.org, Steven Rostedt , Sebastian Andrzej Siewior , kernel@collabora.com, krisman@collabora.com, pgriffais@valvesoftware.com, z.figura12@gmail.com, joel@joelfernandes.org, malteskarupke@fastmail.fm, linux-api@vger.kernel.org, fweimer@redhat.com, libc-alpha@sourceware.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, acme@kernel.org, corbet@lwn.net, Peter Oskolkov Subject: Re: [PATCH v3 00/13] Add futex2 syscalls In-Reply-To: References: <20210427231248.220501-1-andrealmeid@collabora.com> Date: Wed, 05 May 2021 16:23:52 +0200 Message-ID: <87bl9pi7if.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 05 2021 at 14:31, Peter Zijlstra wrote: > On Tue, Apr 27, 2021 at 08:12:35PM -0300, Andr=C3=A9 Almeida wrote: >> Hi, >>=20 >> This patch series introduces the futex2 syscalls. > > I still utterly detest that this adds a second hash-table for no > descernable reason. > > The new syscall interface does not depend on that in any way, you > previously implemented the multi-wait thing in the current futex code. > > Like I said last time; I'm okay with the new interface, but I don't see > why you need to reimplement the insides, that's all pointless code > duplication. The real question is whether we really need to model all of this along the existing futex functionality. I wouldn't mind a new infrastructure which addresses all the other known issues of futexes and makes the overall design less horrible than what we have now. But that needs input from futex users (libraries and other horrible wrappers) to figure out what they really need, hate, like or do not care about. Without that we are bound to pile more crap on the existing pile of horrors forever. Thanks, tglx