Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4263524rwb; Tue, 8 Nov 2022 14:40:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7kmWpgnbhtMY7OUGdYzzfSSi29z/tG//dhfkf4tHtFAEvE5fxzXM7fYop+PNGWKGxMoUaM X-Received: by 2002:a17:907:2995:b0:7ae:8956:ab56 with SMTP id eu21-20020a170907299500b007ae8956ab56mr1121707ejc.719.1667947234826; Tue, 08 Nov 2022 14:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667947234; cv=none; d=google.com; s=arc-20160816; b=K9xCdsgKirO4ULKXkp/c+SZ8zaolnkPSavXtR0hZu5xg+xFcB2kk2IZIjNMLP/0iUb SRCxf4EJSNTcxajJrV3fUvOYiUCmqG22o6mAmBCfpOmREwjECGIYR3Wd4FvxbNdWFEUY hdbhHd20PN5goeH4+aowzZ5uCa1K73e8tuo3k1ULxFpwXbvkaw1KPw07yf48TaitSEpO kCbu2Ykh+T1vuiY9/eJ4mJY8LbPoVbvYMWRxMOSO7S0mPmiSXFXa8L9oklzfHFOeCAAE i91c6wCgmQnquyy2xFHVGvCQ9Oup6tBXf0dJfghSK6WBZpVY6+yp3MTC8nvHH7W61p93 0Upw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jvyE+a/VzGi/Mx5kFb7LbgyWR350ByNCZEt0N3cpML8=; b=QLBGV98wWMWLu9T42saeQMNKvahlAZK9jtrdnxxBBAsLYo74SSS0BDPtCQAlT+qbn7 oDheJAXcLpDMvSqBBFLYk330zl5yd0lvapza1ZgkXFg5cqcp14Rh2XRpWWP0JE4Q38bP g+TA2DC16KC0G30SKgRzyslaRjsiMiWqYCvcYi+djjubghvhqGwfKspiwjqnL5x1Qged E47d3x+gtd5QN5fX04JLluYqqDRw3dt3G40jIBhJdB1FET3bQyyKkdLIoZaykfzcb1zz wMix8LM3I2ejhPW67zYBNhMMpXIl9EFIAwoPRdaYttfsQ9EDoGnq+KrNLjtIG+LFo1Jm 996g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dKygR0Cx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi19-20020a056402551300b0045cd50b7c65si12898021edb.266.2022.11.08.14.40.12; Tue, 08 Nov 2022 14:40:34 -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=@gmail.com header.s=20210112 header.b=dKygR0Cx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbiKHW3e (ORCPT + 92 others); Tue, 8 Nov 2022 17:29:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230007AbiKHW3H (ORCPT ); Tue, 8 Nov 2022 17:29:07 -0500 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED133657DA for ; Tue, 8 Nov 2022 14:25:50 -0800 (PST) Received: by mail-qk1-x72a.google.com with SMTP id p18so5435582qkg.2 for ; Tue, 08 Nov 2022 14:25:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jvyE+a/VzGi/Mx5kFb7LbgyWR350ByNCZEt0N3cpML8=; b=dKygR0CxCqyjGTvl2IWDIb8jaR/u/d9iiBXaf3egCii7YfMz5/xAEUoN3/0qCLqKxi pxEUtf7Hrs4+2eZTmxD6mZADVqpe7h3EBXn1RzSlJsfRG5AUwxQhsTJRAQ9BpMvWBkVg h6azusM+UX6lyaeAzwegWteazcyKI/Owumc1+ioYKEbvX6mq/sn+DuEsELtOhmKC0IU8 /8JxUwwhy+Clx0QMfCdZyquxhudKzzKDxoEd2Bmr5i/lYoGkiE/YZ2zpyvGUuCVNVbQb TEnrbdIyVrV/5R9l+q7JUmZ2tJTcezHPjvn5z1kC8q77/2WBS5d5xSoNQcCX3FHTWhw6 3Isg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jvyE+a/VzGi/Mx5kFb7LbgyWR350ByNCZEt0N3cpML8=; b=mENWEecVGuu92xcuQFIVMP9Iyz2PEiRnsVfzEPKgUpBF1XlHmWLV60g22kodxDoG8O mkAwdpxhfN3GmlASpsH3ZDa1rYbVUr6gUwu2eIHvKLBLMS2ZJ/X5AfAysCMLz8/mjSnL JXgGG5bzx+LEgKaWSWOkFe/QqZnNBB66+j3M0GqTfm4MnOq+Zcqr3/aQsEvG/hvzTcxI ykxrSGkVgrugBPpY8aXM759OCOkjzzLd8jVwmvUqBxPmbqbKSzcB/Q/ehVmuuAQ7s57S ltWjz0VwVJasxdcBn/k50c4Dd58xHLBUdEQj80txZmdWWsIYd20gNZt1tMiK/nMzv0Xg tTrw== X-Gm-Message-State: ANoB5pkNqYPCu12b3NzZuroNEZwLM+lkc3um6X7ZqkQtMdQLXdoq+DSV +CidyX4i1ZzL5Ak7gE7GyVMztVoduG8= X-Received: by 2002:ae9:dd85:0:b0:6fa:e7e6:2009 with SMTP id r127-20020ae9dd85000000b006fae7e62009mr7959850qkf.428.1667946343666; Tue, 08 Nov 2022 14:25:43 -0800 (PST) Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com. [209.85.219.182]) by smtp.gmail.com with ESMTPSA id ay14-20020a05620a178e00b006bb366779a4sm10096697qkb.6.2022.11.08.14.25.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 14:25:43 -0800 (PST) Received: by mail-yb1-f182.google.com with SMTP id 131so14642234ybl.3 for ; Tue, 08 Nov 2022 14:25:43 -0800 (PST) X-Received: by 2002:a25:23d6:0:b0:6ca:7fd:d664 with SMTP id j205-20020a2523d6000000b006ca07fdd664mr56798893ybj.85.1667946342834; Tue, 08 Nov 2022 14:25:42 -0800 (PST) MIME-Version: 1.0 References: <20221030220203.31210-1-axboe@kernel.dk> <20221030220203.31210-7-axboe@kernel.dk> <4764dcbf-c735-bbe2-b60e-b64c789ffbe6@kernel.dk> In-Reply-To: <4764dcbf-c735-bbe2-b60e-b64c789ffbe6@kernel.dk> From: Willem de Bruijn Date: Tue, 8 Nov 2022 17:25:05 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/6] eventpoll: add support for min-wait To: Jens Axboe Cc: Soheil Hassas Yeganeh , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Shakeel Butt Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 > > 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?