Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5195228pxb; Mon, 15 Feb 2021 12:12:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGYiX7GArRW5uikFVGjmx4IByRDkKP4C/sB7XI5VSO0jiAEbuGocDcda6qGHLfZTAFCFVX X-Received: by 2002:a17:906:8583:: with SMTP id v3mr2513180ejx.126.1613419951661; Mon, 15 Feb 2021 12:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613419951; cv=none; d=google.com; s=arc-20160816; b=08Defy46gcG4597OZ+z+va4N/61TNfaldTCmfGmkkG+pNv43PcmoaqfVJ8nOjFgEtW Zs4Zw3WDK5FQ11kEiDZYwl0rL+O8jkVTZYT1wZxFOmtn1l7c1xEKMqOcjghUAVPCqaiZ u+KgHNrUFyadAVs5hnCBRegZV5p1Y3BD8msP+ZSHz8XbT081E2XxMiO+iOQBxsVZtwsz nB22VmZQz7ArJJu869xbhVGk94u8tK0hN6lECXDTXIzMOotkvClXF7ttkQcsOSASNwQV U6nMSa/TYK0Ool5CISKVuGiXw6A2WQ1b1OAxvH8Xl03qg2UmkHReHQW1JXc/SwWm38Gi XJ+A== 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 :user-agent:message-id:in-reply-to:date:references:organization :subject:cc:to:from; bh=pGCM5TJZuEz2WusGjRMHg1b5jmg2lQg4uhzS3UlM9S0=; b=l9s7vmx5a/tR908oorTLVHxP5OEfoVHtwVkCKK8CgANWjgZPVCUs0BoAmaq9DCkAIM Lo20VYAsx0Q08uSTTC7vjN1lWDl9fUTu0SHvV2dt+xymACuLSQGefg/Erhp/glkDnZ1a beQbq+vqfpV+BFkpVdv54WQu7GSvEVdj1bwGdlFEXvxzCuMD/+ocHHpxqKVAyvU0pTTE mIr6dUZYyfnbyHZWxrkbNXNK7/9V8cdDKYtodSvfAZQmrEBL3FQwDVPrvWiwjw4Gl8yo cWg9uziq9MCNmO+viuJxXFCCOvu/q5mPioTv5DrTwQCPpgUMTIlI2v7uk8teawbz3oEV Z+hA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si16398877edi.63.2021.02.15.12.12.08; Mon, 15 Feb 2021 12:12:31 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbhBOUI6 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 15 Feb 2021 15:08:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhBOUI4 (ORCPT ); Mon, 15 Feb 2021 15:08:56 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49354C061574; Mon, 15 Feb 2021 12:08:16 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 76F7D1F45078 From: Gabriel Krisman Bertazi To: =?utf-8?Q?Andr=C3=A9?= Almeida Cc: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , linux-kernel@vger.kernel.org, Steven Rostedt , Sebastian Andrzej Siewior , kernel@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 Subject: Re: [RFC PATCH 03/13] futex2: Implement vectorized wait Organization: Collabora References: <20210215152404.250281-1-andrealmeid@collabora.com> <20210215152404.250281-4-andrealmeid@collabora.com> Date: Mon, 15 Feb 2021 15:08:11 -0500 In-Reply-To: <20210215152404.250281-4-andrealmeid@collabora.com> (=?utf-8?Q?=22Andr=C3=A9?= Almeida"'s message of "Mon, 15 Feb 2021 12:23:54 -0300") Message-ID: <87a6s5w0us.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org André Almeida writes: > Add support to wait on multiple futexes. This is the interface > implemented by this syscall: > > futex_waitv(struct futex_waitv *waiters, unsigned int nr_futexes, > unsigned int flags, struct timespec *timo) Sorry for the second email in a row. But, if futex_wake is just a futex_wakev with nr_futexes == 1, why do we need two syscalls for that? Why not only have futex_waitv? -- Gabriel Krisman Bertazi