Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38082660rwd; Wed, 12 Jul 2023 02:48:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9y0qXxdymYfhkMhQjcU5VBibhbNOwz6njEyluUZxWIoB1m8bRjXuPhLKejwKsi8QrC8gq X-Received: by 2002:aa7:c2d8:0:b0:51e:54d2:b52a with SMTP id m24-20020aa7c2d8000000b0051e54d2b52amr10268498edp.26.1689155318981; Wed, 12 Jul 2023 02:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689155318; cv=none; d=google.com; s=arc-20160816; b=szjHJhPoL1BPay/0YxostEzujnyn4J8qlLQ0jWq61K25CSNi4FGDHQ3hsKKxJi9Se0 MTs/EcgQLGBfyekvSl9GJJOe6IQO7z9Y4VrCgM6qHsM0Aj7w09o3HbuQMtmSHpLHzgWH wMyfrEmnhhiMIfj61hcVRU4b5ODnVSj7NhIM5ecySXkK1jYs6OWJEF7/BUpPO1YmSH3i foIUghbfb1+J0F/GxDlZBpXjb4XAMOxmtygONvx3hmQpjG3OTwbQ3ftO02LalKXwVfsB kdH/klwZ0rh1Q8DzRCGB4A4HhU0u14Ql3UUghJjo5IQj2/JLLfCfwcPR02fyHYdCoE5j aFCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1NES0FBGbCJEuBDLLpuM1qLJflryX6djz/7RZ/xzrDM=; fh=YxoZzaFBzusEP422r4lluYPYJCJOrfINnL/9RtUT4Kg=; b=WK98QWpG0OlJ2320Xwxa8WG0Tv8mJ3TgiWt7+kvlbgw/AZPdoUlVt6hnoVapkc65/n bpjtEB5V248HqcfXr8eMUgqcqLZ1RqpdkwhbYkqz9bOjLVr8svj1Y33FkwZ1QUE7Z5UQ 17CCVHBnNGVSe+vOoNra8nnC4AI8xjXxEBxzOiDQ+KxCXsGlisF1Zw9yBKFqoDgBixWj pv14a6YT/KAyQhOFI7bn3k01w0iYonrkAjcD9DNwYyluqFx59HMsiIvsITWK4L2salpB cV4KoudBN4Mskk5iecao/Qfgay+b2lDpxuxUEDibOj2KJx59cOP67rfXVHbi7OWQM/4+ udzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="BlrY/wha"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020aa7d690000000b0051e57693d06si4050571edr.307.2023.07.12.02.48.12; Wed, 12 Jul 2023 02:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="BlrY/wha"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232216AbjGLJcE (ORCPT + 99 others); Wed, 12 Jul 2023 05:32:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbjGLJb6 (ORCPT ); Wed, 12 Jul 2023 05:31:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3525170E; Wed, 12 Jul 2023 02:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1NES0FBGbCJEuBDLLpuM1qLJflryX6djz/7RZ/xzrDM=; b=BlrY/whatP2X2PV+0WGmmBqDBf dxu95sAXYZQQFWopDgpYejmAN+hVRNDFPxjaIT30vS8iYjSkFLKp+amG4tChZyx1y2BbqpwL5sFVX kvuHpeqnzeKTk7WrEDaIhjqCQH34Wot5Yf9+oJLZEBlmRuyQ3ri/M4ROGnBC+y+B1/my6cvK5LE7O tU0oDoRsuZwL/ZzvGMZv+8CghkFgoVg1XRNfIFl6FLBtlmbZym5isY8019eo41bfl5m5+mxeGfu88 +ui9fIn/0SRHUJNZyxIbRtR4c8u869tM2BESxy57ND+Les2UKgsLvXPxnt3dkJVnQbwBjXX1TWpkH TW+2uXNA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qJWCP-00GXcO-NZ; Wed, 12 Jul 2023 09:31:53 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id DD15630036B; Wed, 12 Jul 2023 11:31:52 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C6A0A2440832A; Wed, 12 Jul 2023 11:31:52 +0200 (CEST) Date: Wed, 12 Jul 2023 11:31:52 +0200 From: Peter Zijlstra To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com Subject: Re: [PATCH 7/7] io_uring: add futex waitv Message-ID: <20230712093152.GF3100107@hirez.programming.kicks-ass.net> References: <20230712004705.316157-1-axboe@kernel.dk> <20230712004705.316157-8-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712004705.316157-8-axboe@kernel.dk> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 11, 2023 at 06:47:05PM -0600, Jens Axboe wrote: > Needs a bit of splitting and a few hunks should go further back (like > the wake handler typedef). > > WIP, adds IORING_OP_FUTEX_WAITV - pass in an array of futex addresses, > and wait on all of them until one of them triggers. > So I'm once again not following. FUTEX_WAITV is to wait on multiple futexes and get a notification when any one of them wakes up with an index to indicate which one. How exactly is that different from multiple FUTEX_WAIT entries in the io_uring thing itself? Admittedly I don't actually know much of anything when it comes to io_uring, but isn't the idea that queue multiple 'syscall' like things and get individual completions back? So how does WAITV make sense here?