Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp442350rdb; Mon, 22 Jan 2024 08:51:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsdqQo1ygoIDaEcJC9UXHfq2bHm47st+qsae2us7NFq5VKiioIr6mi5oU2RrpyXNlDMzet X-Received: by 2002:a17:907:c30d:b0:a30:a5ef:aa1 with SMTP id tl13-20020a170907c30d00b00a30a5ef0aa1mr32727ejc.13.1705942280626; Mon, 22 Jan 2024 08:51:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705942280; cv=pass; d=google.com; s=arc-20160816; b=Sl4vOIti2mtH+Gs/dpupERYG+OFYvH3L1FRTUsEMAFQW69qVB6nkV0OoY+1AkAu8aI vrGT5svu1qjon/JstVpYr1454LPv+zVt5hGSYDDHl9YtmY+lw91bmc3LkyNDUY6K+DRF xdzzVrTtYRA/KzhvuPZQ/gwGl1BLPjIyG33oGhutdhw5nFawvV49ulpruYh+RVImwwb1 J2nxYWdU0If0D5PWIZ1inp+dLabKLyt+rPQFEumJyqWSvdZBts5DU1foca7ZySRjdhbE nONqHOGFfw6xycQHGbvUcMXXkGxSyZfwCa4IAZK6O1Vt/x2Z8do2yVcG9BvNiOAKtbJV vzMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wIzA9bLkliBKrm50f6YbCMcSy6idmnyWu5yN9Aea7t0=; fh=2d6QnTgajNFQFqBu76JpoUd1xU+7Ah8u6Q4pOCeiNEw=; b=ogGjdgySBDY8/N5bCC3X4xrle4eJXNmPouxXrptg0TKe8K3aOwS/WpDbvNMp08/GDe 8tNIiq9N8MNcHxgBALu6dI1wQLpfl9jwxhiHcnA2PYoy7maZVB2qWDnGnEdwkbkhD0nm Ro6J64YAu+vfEMeluz6Q4bj4HtDNiVBD+yHVc4AG0d+I/k8ajkCop62/n5p23QCy6g8q uhfaxnSGXDXTw1bn9gSZCdaIhEnBluTmf0XWLEiBfSgRG0BqbT3M25L7uZyvHeDeJ0dl EmgbRroRC+8Za1PbWKju7f8PpNyhfVEKntoStXntF2yGsKC4/gdwj22btKjH3rCaFMyH //VA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W2s87Plc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33583-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k7-20020a17090627c700b00a28d3917ff5si10559422ejc.650.2024.01.22.08.51.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 08:51:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W2s87Plc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33583-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33583-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A48871F224FF for ; Mon, 22 Jan 2024 16:51:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 836165B20C; Mon, 22 Jan 2024 15:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="W2s87Plc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A48ED41210; Mon, 22 Jan 2024 15:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705937107; cv=none; b=mJ1kjrvoMTECDpuUWNLYP1V1EJfuCo/6ZWUIsfa05cceywaqlvfKbt5Q12UoSziVrNc25MmXsrtGZtN7YE3byL1ZKEYl6+Z0LfDiWsCu61oqdJf1KlM7pDNCmEbH06CWVjF1IgND3Vka2/EkDfA/+/ujK4ySthu0CdbKUH5eblM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705937107; c=relaxed/simple; bh=uQjaKfpOsy59BldaTOx7UUJOln9p/JBZ5qFpOPOj//g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YHg6ZY8gX7E4NppqvzKzlNrEdJVGWDMdzx9VjmInqc3KugzTs6bFte3mPdDRguvTfHMuF29XrFaCknXWlh92B/1H6ad7iUXcJMbyeU8YjXnXy3J4JwCRiQ4TdzTPOngeEvbQcy88hJXYw8zN5LpvFOvxey7fVKhMHvePiMwiznI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=W2s87Plc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1454BC433F1; Mon, 22 Jan 2024 15:25:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705937107; bh=uQjaKfpOsy59BldaTOx7UUJOln9p/JBZ5qFpOPOj//g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W2s87PlcBBQgG38hGiE77fLDeUK2SsJuqEWSUpS7anXa0zvPd0YfhQBtaAq9q4LnD wpynDeqFv62dNga4fTQDpPubw+eDwBstZQ4qEmY66rZAdoAGgQwOloK6C7f4jchD5X sdwaSgS8IanBaY9XlpnLZxxnlb/DP6gM0KlrzMLCrExWtEhkrdwiTiRqNX3sjNJytb BHd6aA296DPnt1VHJz5aa9SI0W9MNtaHCVt4yrbYauP2GggMC9kXndxsvHbT2DiTBt pnlzF+XxECAToHUsXPO5+2iCWvjrbKvZwV9sV5DirJKc6waVVnGfDPXJRJ2/2cMco+ m16PaOlAoJICg== Date: Mon, 22 Jan 2024 16:25:01 +0100 From: Christian Brauner To: Joe Damato Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, chuck.lever@oracle.com, jlayton@kernel.org, linux-api@vger.kernel.org, edumazet@google.com, davem@davemloft.net, alexander.duyck@gmail.com, sridhar.samudrala@intel.com, kuba@kernel.org Subject: Re: [RFC 1/1] eventpoll: support busy poll per epoll instance Message-ID: <20240122-erwidern-erleichtern-8a04080a4db3@brauner> References: <20240120004247.42036-1-jdamato@fastly.com> <20240120004247.42036-2-jdamato@fastly.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240120004247.42036-2-jdamato@fastly.com> On Sat, Jan 20, 2024 at 12:42:47AM +0000, Joe Damato wrote: > Add F_EPOLL_{S,G}ET_BUSY_POLL_USECS to allow setting a busy poll timeout > per epoll instance so that individual applications can enable (or > disable) epoll based busy poll as needed. > > Prior to this change, epoll-based busy poll could only be enabled > system-wide, which limits the usefulness of busy poll. > > Signed-off-by: Joe Damato > --- This should be an ioctl on the epoll fd, not a fcntl(). fcntl()s should aim to be generic which this isn't. We've recently rejected a memfd addition as a fcntl() as well for the same reason.