Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5541342pxv; Wed, 7 Jul 2021 06:15:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW7wssigEt+0DNXtzG5KD6oqdH/GT2O4RcY3UZ+VnMptxAPCGrUHVpj1fpxLVDUZAUTi8w X-Received: by 2002:a17:907:3e0a:: with SMTP id hp10mr24163755ejc.110.1625663734670; Wed, 07 Jul 2021 06:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625663734; cv=none; d=google.com; s=arc-20160816; b=z8Ry56+rDQXnt5VZDd3kbDCmc8VZKaWfSm1mDX7iaitwyjfbHDx6lGBaEAwOA2mBkJ AMtcW4q4xBUTlA0lPRsTjn+Iwo7UfvOgwu/HWZlSRERqI2clSSyvKxFvlZvqcl20aOdP /cgF/Y3AqoK10ULPQQyYqCo2UubBPaa7RLTx6XNBNRathJw5ZfJzy4F5mByzDMQK3tmR GZ5ouQlYUpboCjmOA/KE9F3M10x4a8l4pUTMQolV/wfdOsMvyhv5p+Pje1AN9iD7vEue ZY3ceuu8s/djA34TiJaGWaPtsJlrJwDJHEIR5I8BBTPE4UgZd1L450MkggUxioiRYL3O upNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=P+p8MlTL+Ugums2wbllEtPvV46qbJoRofLeQP5kxHz8=; b=AVuN0bz7ONe+oyDrenx9fIuxlxxDYNKGZ6xLFT7qrRbn/jhJolPTkWxHpeZhtnIe5P 8fh9821jY4UyljaBveLlrfSFyCeslQsQvFeZ4sa0aNrSjW2WXDy2zeYM8cKYdOIAwe3l pBeGJOYgsoLhuKSGLbh+Q6t6wfqGOxBZUmgzHMuT8gmNbBr4FJYvCUPP/bCcwIT3KCTt k1SCmL+aN25+cDLuVfw+EGKPog/lVmDpriQXI0Vu87D3e/VduUP1Wem0Lx9xXuO3KmDV UzGncxiiczS7qiB0X6rM0lx7L9HolKyZdYSqgqBIhzN25FHW0qv2FIqTg+lGa7ekT+Tj JjIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=RBCF38Z9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs13si12831608ejc.150.2021.07.07.06.14.59; Wed, 07 Jul 2021 06:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=RBCF38Z9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231641AbhGGNKL (ORCPT + 99 others); Wed, 7 Jul 2021 09:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231551AbhGGNKK (ORCPT ); Wed, 7 Jul 2021 09:10:10 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A904C061760 for ; Wed, 7 Jul 2021 06:07:30 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id b15so3267085iow.4 for ; Wed, 07 Jul 2021 06:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=P+p8MlTL+Ugums2wbllEtPvV46qbJoRofLeQP5kxHz8=; b=RBCF38Z9BoIserbyrC2TIsU2UE0NmC2IMtmcDMWweo1/VZHNzkNynCJ6a/aTwq7D1A 86wGe/YtWI8g/kLI08XlN/BxFvFg7OTNWsi08T5jN1OtvJv3BHfiEjd1MlMt3vIGfeMJ QX/GJ1vGnCVesF/Yxlk3KFjyX0HkdqGFDY3HC4ifgaUYvZNAiIDnjCpPNSIbs6mvHCQk TxMeqtR+OWObrDfkxK4YvAiqsufT/9sBPWH8mzJJQMVZgUZY4HaWy5RgY+VTDTDyNuRh qZXpZ588E23ITPB60cJFLgVsHXTSe5pUtedACOZpMf63hOcBb8wRsoIpBr9Cmc6zWOIt NbJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=P+p8MlTL+Ugums2wbllEtPvV46qbJoRofLeQP5kxHz8=; b=QNdOr21An9o8UDnvL7n0xbTB6V73IXg1uFZfWcK6VmXOElJW6h0Dokunqv+kOlgCgX 96e2VCmAaO+BX2T2+Ir9dmZ1KX449hgcoDDGjCRungnsHKD7owbqu3c7XGOCOlShNqQQ GsvILP9ZaelL99Zt2ZC//GWrpT5s6Xm9R20pvqKH2aUnupOPyABkkisk8PV/y7RGMd5K mXSF/tW0Buoal7QvMjZHl7F5v79WJT5D66YPpKOJNmAMljM8eGE4uVAr1SNwbEvXLlBT Z97KF81kjSj1n2PHMsYc3HzMelucJvFEAQKS0LBTbRYVuA6eeoYB4p1TC1mlbxvwWnRl Kn1g== X-Gm-Message-State: AOAM533iGpgl/lhbZWhYhTHFFyJs7Ig6iFHzeahDx7r+ThoQcL2Kz5T3 lwQBwSIW/Vp1frPls7oDytwfqw== X-Received: by 2002:a6b:760e:: with SMTP id g14mr19857660iom.119.1625663249772; Wed, 07 Jul 2021 06:07:29 -0700 (PDT) Received: from [192.168.1.134] ([198.8.77.61]) by smtp.gmail.com with ESMTPSA id m13sm10321697ila.80.2021.07.07.06.07.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jul 2021 06:07:29 -0700 (PDT) Subject: Re: [RFC 0/4] open/accept directly into io_uring fixed file table To: Pavel Begunkov , io-uring@vger.kernel.org Cc: "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Josh Triplett References: From: Jens Axboe Message-ID: <48bd91bc-ba1a-1e69-03a1-3d6f913f96c3@kernel.dk> Date: Wed, 7 Jul 2021 07:07:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/21 5:39 AM, Pavel Begunkov wrote: > Implement an old idea allowing open/accept io_uring requests to register > a newly created file as a io_uring's fixed file instead of placing it > into a task's file table. The switching is encoded in io_uring's SQEs > by setting sqe->buf_index/file_index, so restricted to 2^16-1. Don't > think we need more, but may be a good idea to scrap u32 somewhere > instead. > > From the net side only needs a function doing __sys_accept4_file() > but not installing fd, see 2/4. > > Only RFC for now, the new functionality is tested only for open yet. > I hope we can remember the author of the idea to add attribution. Pretty sure the original suggester of this as Josh, CC'ed. -- Jens Axboe