From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E740C07E95 for ; Wed, 7 Jul 2021 13:07:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 045D561A2B for ; Wed, 7 Jul 2021 13:07:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231590AbhGGNKL (ORCPT ); Wed, 7 Jul 2021 09:10:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231533AbhGGNKK (ORCPT ); Wed, 7 Jul 2021 09:10:10 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C572C06175F for ; Wed, 7 Jul 2021 06:07:30 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id h6so3281268iok.6 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=OaB7jbPpCaVIxN65Pk3poi9l3afn6SPmSb5nqjfFVMaIrxrkoqZ5poPCTDu2oV4p0w cYj+hNAMczUGnqw1/sKGmuHrPB+oNfZlDZ9toBEDAjwqARtOli40zUqjB2c4Jxeg9Ma2 SR4K9Y5rdY1x/AIi7Lx0m7VumKnEL3GvQRJ17FXVxLpHvwzXTQltNRJMw15iL1PxYsrE Zrn32774thlqiDXPqbjCe/wbx9Gs3p4plVasrkLy+eJ2nd7p8ld1hfAJsd+t5onV+Kl9 lIid1oyE9pSSjzbEIvpZg1yQL6FFCZVIzJpSvsdT+D9FHpVQ9upTMH9logPOjFMyNq0t pJMg== X-Gm-Message-State: AOAM532R3xxf1Ip+5xuaJzVEF3xKkeyDEgl1o6amAASsi6catqC8oiRq DXDB8qPKHabZHPEUgt6WJzQFVw== X-Google-Smtp-Source: ABdhPJwQrf13ubadfe5m9Byloeyk5PEWe2nQLXJo8nOhxYt22e5MGCQqWrUAJuTIBVz6gl5pYt8zZg== 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: io-uring@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