Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp2728674rwl; Sat, 5 Nov 2022 10:44:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kpBBasbXC2IKA6V5qUbQ3L66pU5veK40HrHenELajs81oHmGIBhYXa7yKQ7DSBUj4Q4eJ X-Received: by 2002:a50:a449:0:b0:464:718c:a507 with SMTP id v9-20020a50a449000000b00464718ca507mr8712883edb.401.1667670281677; Sat, 05 Nov 2022 10:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667670281; cv=none; d=google.com; s=arc-20160816; b=lRdGpY24Z52J7Wb/3QfLvz0eyuSjKYqOrnjazNv0wS2rmTyhYH14P4+qSgQZgWmgm6 1YcO5huB0QzlBC2lKEzWen345uz4hPpfDr6LGYB6a6Uwjyoq4hUfaQReA9IVi8MNvFaa 6lyIRWPXbbmT8rC3KVHZDbeQ9B6NyNZh7K3ptGoB31kirWCJqCp/oLSdqRLs26GkmShB iGhvo/Df0/fFvA6QsNhZSq2ERm2Wcl0creOCcvMhM0fiMV9S4sdxtSWNcSxbi1MXUW09 7rpjqbQo9Y2CypHyAHuPYZpxPpZgrAYv4J687IsLlR1IdzvMuO+jm7HOObd4lU1fd51l m5Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=WWrco+vXh1FbuoaRINj7wlDyd8eAZjNE4VHFGZp67xQ=; b=x2+73/CGozJiT2gTyyhwNmVA2q6aUuxoJoNBzyIrF0f2EV1Ub5AD+8yfJYijJJQ06Z wcc6smpQsW32xJfmlijUx8/lnbfopsM2HXBp3bh+LkOW/fWlRH2F9IdskHvuMfewCU3z eyR323Cu53nFEWdfamlX3yLcOMrviTa27OX707iq201eaOrZ8BTs2L3V4Udn6kYWPYQe xtYe4/IT2REMo+9mDbR7AIPNl7qp1xGprnIKgFDs4Ek5dmnQBaC2CsnD1JqmWDfsl7ST WQ4yzC/WACGzWnxWgmMQfy8pZH3biblJqXFLYTiMOtTkJPdgFj7gWr5Toa4lCTPJzfax 416A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tIMJvPzk; 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 gu20-20020a170906f29400b007ae29da29d9si2476736ejb.131.2022.11.05.10.44.05; Sat, 05 Nov 2022 10:44:41 -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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tIMJvPzk; 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 S229821AbiKERjT (ORCPT + 97 others); Sat, 5 Nov 2022 13:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbiKERjS (ORCPT ); Sat, 5 Nov 2022 13:39:18 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AFF91C914 for ; Sat, 5 Nov 2022 10:39:17 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id g129so6961235pgc.7 for ; Sat, 05 Nov 2022 10:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WWrco+vXh1FbuoaRINj7wlDyd8eAZjNE4VHFGZp67xQ=; b=tIMJvPzkHDIyKiPdGwqxg/svC3w0FkTPRJansTyXplDRdyay7bQCFAoI+4+Fba1aiy 8gWl1frw0GVmz5q147uAckoYIQlfraawpo9HctXDE7iij+90PUr7wwVjhM8Ti4ND/BNJ Nk6/dViWcvSVqsLoWMwiKOsexmZ1cUpbr09x3zFlKIGUPLZUb8kxtQRySNTsX3LoZXMD 2h3SpRuuvPxM69XIab10T8Mb4GGy5IGkC5QhmrcWzLol9g19wSpfYg2/1pIgqh7hYgDq UX5Q5blWMEiBeWdtZJKK87s002w7fiswuJzzy0UmGbMrv3KcvKcfC7ugLnMO53w8YVG4 jsZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WWrco+vXh1FbuoaRINj7wlDyd8eAZjNE4VHFGZp67xQ=; b=d5Y/DlUTyA8e4OZGP+2qEmA7k6bIR8RrsdUMzerfnGzpBGZxEAy1XTIk/KeWkJv/ie kTMtbrtLNERFY0GfRS9Rg+snaen6tEE9OCDMoWJuT5hfK8JY7rzloFAedxjth/XTXQUL 8Vx6oOJMHnv33nqkTu+PDJUrrweNQQInF635OVWOcinIUcL3xYaWpkFiRmml5asoe6R1 EVwyTC5lyX2lw//abZxmrJPGfNoh6fg4bRVhA60apiqIC9lxLp4jH7M042AbHk+z0L6O XqGmAwR0QxxzVPq0CnHWhN1eYw9dbex+Ba/hXH60/oHbQdh4N4gU8f6W/8/5tzblxGBC YPyA== X-Gm-Message-State: ACrzQf2jJBthZJJB4GBx5FB3qs5dXQzYeuXeH0JWAxBTEroEgbKNex6p LKJJoF+pXpuY4LQkFsIHDXaueO4rYdwsS8s7 X-Received: by 2002:a63:1748:0:b0:46f:18be:4880 with SMTP id 8-20020a631748000000b0046f18be4880mr35434657pgx.128.1667669956645; Sat, 05 Nov 2022 10:39:16 -0700 (PDT) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id l13-20020a170903120d00b00186a1b243basm1934278plh.226.2022.11.05.10.39.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Nov 2022 10:39:15 -0700 (PDT) Message-ID: Date: Sat, 5 Nov 2022 11:39:14 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCHSET v3 0/5] Add support for epoll min_wait Content-Language: en-US From: Jens Axboe To: Willem de Bruijn Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20221030220203.31210-1-axboe@kernel.dk> <02e5bf45-f877-719b-6bf8-c4ac577187a8@kernel.dk> <88353f13-d1d8-ef69-bcdc-eb2aa17c7731@kernel.dk> <46cb04ca-467c-2e33-f221-3e2a2eaabbda@kernel.dk> In-Reply-To: <46cb04ca-467c-2e33-f221-3e2a2eaabbda@kernel.dk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 >> FWIW, when adding nsec resolution I initially opted for an init-based >> approach, passing a new flag to epoll_create1. Feedback then was that >> it was odd to have one syscall affect the behavior of another. The >> final version just added a new epoll_pwait2 with timespec. > > I'm fine with just doing a pure syscall variant too, it was my original > plan. Only changed it to allow for easier experimentation and adoption, > and based on the fact that most use cases would likely use a fixed value > per context anyway. > > I think it'd be a shame to drop the ctl, unless there's strong arguments > against it. I'm quite happy to add a syscall variant too, that's not a > big deal and would be a minor addition. Patch 6 should probably cut out > the ctl addition and leave that for a patch 7, and then a patch 8 for > adding a syscall. I split the ctl patch out from the core change, and then took a look at doing a syscall variant too. But there are a few complications there... It would seem to make the most sense to build this on top of the newest epoll wait syscall, epoll_pwait2(). But we're already at the max number of arguments there... Arguably pwait2 should've been converted to use some kind of versioned struct instead. I'm going to take a stab at pwait3 with that kind of interface. -- Jens Axboe