Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3502366ybt; Sat, 4 Jul 2020 20:28:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsPvfTD4z+AlEeZx7UezYKjf3JBFC9fbcDnTgRrIJNO+zEBmu4fajJYKFhT5TpCJAAJWk4 X-Received: by 2002:a17:906:6959:: with SMTP id c25mr37824218ejs.375.1593919685347; Sat, 04 Jul 2020 20:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593919685; cv=none; d=google.com; s=arc-20160816; b=qYYpMwzAfv41aIf9VEFIfCZ8Az+GWn5QjFbT8pbj5K8hGQnaA1U+1Ol7v2oDu3nw2P jZiMbH2V1V1opkd1UvP4YRHb7dGLXMtDYK6LDgMnTRIOQRuwS8ZXNybtYEoY8gu/xAvo iD6gdtQdzKILo2bt/jnd78xJcXnIh2Mbxe48aDwVuwKngAaacz9BtkGpwwwFNSV+R+JX RJ09qCMbjE93PsjDvmUZRbOgWpBVWX6GQ1XwmuJN1+V4eaQRttbd5h6Pg619XJrIcc2i taruG/eIRuLUDvE5sDYv1ReETlA2gco/pc4PmyxUl7kayQ7iFRGfXzjQqD9O9hz3qv57 cvFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1HVM69sv+KPc2VykHuUhGFUMm1maJllg1rLH5d0wrGI=; b=xWF60iySyle3uyYt6iHPHPdq5gtvbIWQUgAcNqkJZ/Y2Y7SGZ8B73YnxCez08ordoE swli05z5pAkyK/1NY8hAuk3rhpVzSNXBKxh6mUaqjIGgkGYnwUvAs/M3/xsTR+SHc9SZ lNiiHhBm9TZU/y9N2rUgwjdqWcCpinKtq/2KktL4l9b9Wq5XHzSZx5s4GBI1IYUlRs2o IftCI8ZzA/X4n089QQDSMmdtC3dzILSBxh6xMWvbm+hyRG6lcYM1TZOkNSm3XZCSifHX 26H7Z+wk2kex2ijGJcKm/XsHJT09aKj06IEjigsQpypvIoRl6wV9c71SZJs/Hb6ZtbIc erYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=iBIPzR9S; 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 ob20si10341987ejb.646.2020.07.04.20.27.42; Sat, 04 Jul 2020 20:28:05 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=iBIPzR9S; 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 S1728223AbgGED1f (ORCPT + 99 others); Sat, 4 Jul 2020 23:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728134AbgGED1f (ORCPT ); Sat, 4 Jul 2020 23:27:35 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50729C061794; Sat, 4 Jul 2020 20:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1HVM69sv+KPc2VykHuUhGFUMm1maJllg1rLH5d0wrGI=; b=iBIPzR9Sa0ULgSA8+esCMwsd4Y 34wYp+leVZuoUSA7vDu0P2uNvfw02uVtOcf4nBvO/9DGJ4cvnnAdjs9f8Q243z9pH591p+qVeBzTw OntSKXqGDTKDTMg050aSyqR7o6RybIgcGbOo5bmHiAAA1qyHsSlejlBcZAuTWkNknc+LL2eypr6BB S2KihTLxJ3Hf3Qll95PiUlzjSe5MoJSQzfaAkJq+11eZ+45Me+mDTAytoC270fcm0FPFtPc+1V9hZ fnbj6frNwxIgvNxr+IeFADhaWQLfP92jHGerXeucZlJNH+n7Q8MM91XEPc4aTEkyFvXWLkzAAzVw3 2w3fH2YA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jrvJU-0002Rw-JD; Sun, 05 Jul 2020 03:27:32 +0000 Date: Sun, 5 Jul 2020 04:27:32 +0100 From: Matthew Wilcox To: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Cc: gregkh@linuxfoundation.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-man@vger.kernel.org, mtk.manpages@gmail.com, shuah@kernel.org, viro@zeniv.linux.org.uk Subject: Re: [PATCH 0/3] readfile(2): a new syscall to make open/read/close faster Message-ID: <20200705032732.GT25523@casper.infradead.org> References: <20200705021631.GR25523@casper.infradead.org> <20200705031208.GS25523@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 05, 2020 at 05:18:58AM +0200, Jan Ziak wrote: > On Sun, Jul 5, 2020 at 5:12 AM Matthew Wilcox wrote: > > > > You should probably take a look at io_uring. That has the level of > > complexity of this proposal and supports open/read/close along with many > > other opcodes. > > Then glibc can implement readfile using io_uring and there is no need > for a new single-file readfile syscall. It could, sure. But there's also a value in having a simple interface to accomplish a simple task. Your proposed API added a very complex interface to satisfy needs that clearly aren't part of the problem space that Greg is looking to address.