Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5579994pxv; Wed, 7 Jul 2021 07:06:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQY8Q66cGQdBLm+V7VjD9ZWq6tKoH1SHXlNUoh+patnZ6qLy/go9Tmfrt2W6hntbOHGGht X-Received: by 2002:aa7:d801:: with SMTP id v1mr30256640edq.349.1625666768024; Wed, 07 Jul 2021 07:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625666768; cv=none; d=google.com; s=arc-20160816; b=GUjQhAwD8hOY9TYDjusRtdzQAaNEmL9W/o5OfoBwzDCSuZUQOvtJTheJxfNA0amEWY QNnnEHaaz9NBkDSp20uwowTG+7SZMKsz01sty031oLVb/E61pFHOapKVv8KEwSXch5MK YVbvjaUTSKqvvEP62031G4XEo4kHPIhMOaLUQVvLX8N7DHVAhHPvu746pgzKioxhXJqu MgI4JW3+qecQ2nQ5jDQQcsrYmBkcI09XUjVfzgOLfcdjXvVdPlDBPw8NwGOrpb6O8sbe ZwjF8Ry8UMaBH0UJeE924oWsgfvFVK43RcWpFVO0Ow6S2wQTPsmTBJxJHb8ly6cZldsq 9Ybg== 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=xuGmJhz3sxUrlzylz+fYSwJZSsCIiXutJD1UKv9KiXs=; b=fw/797juITWDqCHjkPtQXnABlKa80+qsbzIzI5h+Ks8YWR0floTh0/CADD9QLRaDuR eenq9xjnYjeIrqmApZysGgnhgJzCAtqKGQXOOjMl/kYYa0rqWBNswO41PTTZ/DTrS5I8 RgdhmT1t0c4E4y7tMgiUHOJDT6EeW7WyRBDo64T8BO1g4K8FRs7lZq8Npu+49NSgO7Z8 nDD8MCQuYsZN7idxSuzAVL7x3//m8zzX9Xu8KkIPutsCFLK/YVDv86ND0009MRss5DO9 50e6wFXCztR0XDo6dRZqfGTy3fR8jJQDw6z11oZUN4G5G/7y1iEBnZ3aURvNBeBP/4MI kEbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=vrx+EcqF; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb8si18084078ejc.127.2021.07.07.07.05.45; Wed, 07 Jul 2021 07:06:08 -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=@samba.org header.s=42 header.b=vrx+EcqF; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231919AbhGGOCK (ORCPT + 99 others); Wed, 7 Jul 2021 10:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231631AbhGGOCJ (ORCPT ); Wed, 7 Jul 2021 10:02:09 -0400 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80667C061574; Wed, 7 Jul 2021 06:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=Date:Message-ID:From:Cc:To; bh=xuGmJhz3sxUrlzylz+fYSwJZSsCIiXutJD1UKv9KiXs=; b=vrx+EcqFoB0FN7ecC8Rc8vKbRQ BZHl5uxpCgwbFYMW5HmbU8rzODOJs06rN9ARXQlmWir500Y3s9lglCqqd799fyIKypEBBJJHdOHsb PylGWXiyDT10Z/Nw5uQTShEz/SgaXEmA196/fzZ9pd+Blu3MBYZozqvewJTUqdR+amfEN1A3u1yvg LLWqHd/5iUe79cc6iwf/p4dSpKntltxzDde7q7KgyqOCbfYDN12kiIRfyqBSYA3kHmfm3wvjf1p6K YyUev7Q4k9qyTxuoEiMejw2jH0MDHJRdkuSspFxKkjsTjxe5E/1PHXCn6++ZwI6PkOqbNtQP8EaGS oFxFBeftsN3sEbaMrwWckm+oJkK0/ZWXS9v+nWYNo5ygG+TIL1RdP17I7jxU1fmwAMP+2dOETj1Th hKhFvd3m4Iid4wu0+koyreXQvV1ev4T/1xWEkAzCeTJ+3jZTOmqoL0wjPIa0ZhK4xKZiLT5UQqPGB K4r30Y/kbDJ0ZKdMqmN/f6EU; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim) id 1m185E-0001e6-SA; Wed, 07 Jul 2021 13:59:24 +0000 Subject: Re: [RFC 0/4] open/accept directly into io_uring fixed file table To: Jens Axboe , 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: <48bd91bc-ba1a-1e69-03a1-3d6f913f96c3@kernel.dk> From: Stefan Metzmacher Message-ID: <4accdfa5-36fc-7de8-f4b2-7609b6f9d8ee@samba.org> Date: Wed, 7 Jul 2021 15:59:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <48bd91bc-ba1a-1e69-03a1-3d6f913f96c3@kernel.dk> 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 Am 07.07.21 um 15:07 schrieb Jens Axboe: > 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. I also requested it for open :-) metze