Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4265540rwb; Tue, 8 Nov 2022 14:42:38 -0800 (PST) X-Google-Smtp-Source: AMsMyM7ohgD9rn2J/NhCVMYXeW7lG7XqWH+PhIR69vB57/iicfF4vSgQ71GxH9ffHF7Buy4JXAIA X-Received: by 2002:aa7:c1d9:0:b0:463:aeaf:3383 with SMTP id d25-20020aa7c1d9000000b00463aeaf3383mr42657896edp.253.1667947358710; Tue, 08 Nov 2022 14:42:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667947358; cv=none; d=google.com; s=arc-20160816; b=bgAallBl8a2com6DpfrjnDUJmCVlKMKBjuRj3IkNYUi8PLRrrgPA8df3RRnaaG1dM/ 9ML4SnQaMTbPORmIFgeQLURC655kTchvOLnaDn4n7d1QUQiI4L2PXgWPskKYTPIWOmCJ rR0oD7FC8GRVBVDsMSjZJD87JLPZeSmNLspafFbKfsah13UW9SP6mdaBSFE7E8x4ywUg jOhoQU855/jpfw2nXcSdznh4qbZzJbBCmTumrfdWk6I6zjErZLfELVfy4mvnmMqwETm2 BL2CgW0ApFpB6p5B1dVYk/pEyrEcuKLwnseM6DJpLVu2ZRhAVTaydBlUgaj+28o9RJWG IT6w== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Iw8zQOSB1EwwYJkuWC4Gw7hpw4rYDWi3Hqzc/4Lbh7o=; b=c6dn5Ehuyu3oF/eMtj2TQbonu1FhzSzIm2qjk5m8rOmZ0ymTVP0KympRA5gK/tED0Q C3Klp0qEeT/JkeWhbL6u2VVzuOD7NG8nwsYB1zPg6ZZWogXzNQnvyf2/yC8BF2+CVb60 vh1o9GIPIoi1zMkxnYMGUhpnnCZ94uIVjl4X/6JcNenzw0UdN9iZ59fjIZxWrFstU3Sg OXSl3vFTzHrZ3r3z369yX4dkXetCTX4NnXNEUvPyL6kPW6akPblpRpz4IEjyWlmwoPIL O/0U5gLSnnQOsKfgCtVlEcfqWVKfr1Em4+9oDKJkft1IrhIQyYlRdF3CSzPxcoJdwW+T 7f9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=PFGSZkKX; 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 w17-20020a056402269100b00461f2b974d2si14281053edd.339.2022.11.08.14.42.16; Tue, 08 Nov 2022 14:42:38 -0800 (PST) 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=PFGSZkKX; 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 S230342AbiKHWaQ (ORCPT + 92 others); Tue, 8 Nov 2022 17:30:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbiKHW3y (ORCPT ); Tue, 8 Nov 2022 17:29:54 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7535E1EAFF for ; Tue, 8 Nov 2022 14:29:18 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id i3so15018215pfc.11 for ; Tue, 08 Nov 2022 14:29:18 -0800 (PST) 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:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Iw8zQOSB1EwwYJkuWC4Gw7hpw4rYDWi3Hqzc/4Lbh7o=; b=PFGSZkKXJsa9OpJcwbSIHAaZ6KpHJxR+nJWtR8ZzOvaqJFwd4WjV4oy3liidEisi6c v/pLIu99kKO/mutfZ2CRE+mSUypBKGiIEC6eM/FebisrMsxbdMOOICIxMOzscdBLOnD/ tqVFDymlA/o7qQG/MQcxmDSFgnqruT8vf0qdNZSfSnh/MmGOzxu440dZdM9+6eCL2/im QxPRiepYMMGADwe8+bNVRdz9FZ8Fa+bN1GHAQ9QkVYXLOrccMMl++kxdyCsalDuw6P7U kVe538dbI3Yozmpl6x/6QfJdxKcXtUeM5UGLyTeE2hE2Tnt0MVh9taquUqhh8GSnWc0q 6zzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Iw8zQOSB1EwwYJkuWC4Gw7hpw4rYDWi3Hqzc/4Lbh7o=; b=DqndlOBiY4zHJ1dzSH6sgpTXnJzBEnEgX91aEjhigw5AGl5X+hdIVm9I6aCc84J6Xr +BdQw+BIpiNxf3NLt0Lpkd8+A5R4fdp92SYVuZRAhC/rDQ3P6/aVoJS29lHDM6y3DqkH OYjFAkvjsu9VmXcIPe8P2bHrnqHyuUMF4mEYWnKMnyg50y6rlvCgUzrQKUBFLojVWIz0 /GlOiHUwzmnfrlGVXtXdz4fofvfuV534Faj4PnXzxte5ZatFCZD566nKhvnzoefwSl0N JVuxp4Aw295O5qC9x2yj9/fJrvrl4xzkfw8sjIb/ySLeVl0JogVbTkkMCG46AsZMy6U+ rsXg== X-Gm-Message-State: ACrzQf0MmKZ0873IINw4pvgD4v+U2gpLxItDpMnJaRjKWSBKWbJ3m8se 3tnLNE/Phx8pBgqfro5imow4aw== X-Received: by 2002:a63:85c8:0:b0:46f:5bbb:737f with SMTP id u191-20020a6385c8000000b0046f5bbb737fmr51097348pgd.93.1667946557870; Tue, 08 Nov 2022 14:29:17 -0800 (PST) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id ik12-20020a170902ab0c00b00187197c499asm7504411plb.164.2022.11.08.14.29.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 14:29:17 -0800 (PST) Message-ID: <33832500-ddf3-dc2b-a765-046d46031991@kernel.dk> Date: Tue, 8 Nov 2022 15:29:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 6/6] eventpoll: add support for min-wait Content-Language: en-US To: Willem de Bruijn Cc: Soheil Hassas Yeganeh , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Shakeel Butt References: <20221030220203.31210-1-axboe@kernel.dk> <20221030220203.31210-7-axboe@kernel.dk> <4764dcbf-c735-bbe2-b60e-b64c789ffbe6@kernel.dk> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 11/8/22 3:25 PM, Willem de Bruijn wrote: >>> This would be similar to the approach that willemb@google.com used >>> when introducing epoll_pwait2. >> >> I have, see other replies in this thread, notably the ones with Stefan >> today. Happy to do that, and my current branch does split out the ctl >> addition from the meat of the min_wait support for this reason. Can't >> seem to find a great way to do it, as we'd need to move to a struct >> argument for this as epoll_pwait2() is already at max arguments for a >> syscall. Suggestions more than welcome. > > Expect an array of two timespecs as fourth argument? Unfortunately even epoll_pwait2() doesn't have any kind of flags argument to be able to do tricks like that... But I guess we could do that with epoll_pwait3(), but it'd be an extra indirection for the copy at that point (copy array of pointers, copy pointer if not NULL), which would be unfortunate. I'd hate to have to argue that API to anyone, let alone Linus, when pushing the series. -- Jens Axboe