Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp432889rdb; Mon, 29 Jan 2024 06:51:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHT12jkS2fIY9xhzWDkNCqncVyrzts3O1CqJElTwugrqemOs7kx52dM1GU1s94uEYQ88FdB X-Received: by 2002:a05:6102:5f7:b0:46b:1d11:618c with SMTP id w23-20020a05610205f700b0046b1d11618cmr2141276vsf.21.1706539918642; Mon, 29 Jan 2024 06:51:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706539918; cv=pass; d=google.com; s=arc-20160816; b=qovywF+REMyP3vqIouD/fzpKz0yBxfsZltWueVlY+ZF0r5BumONU1h395EfbIWGaGw SpQln8oh63nQ9IKGKfmuAuxP3tWFfXc6c6Olw0y80To6b5HWQh0phIqCtFOVZuQ1R1i/ XiaDvajFyk9t4fGBrcpehmAHjgqZutjNjMT1ZTnLQZT55HsI3ztk2k44chyXCRZKfvme yF+6ml2XtoCV7RUtu1SaXToxliJXNO/P4um9uIcoFsxUJvSpBtyp7tFscB+XTRFkhuBI fWS5Ldj/u6qKAFM1x+JMhBPTcJMSH3/w2huOJcAwFHOi29qSmfcvEmcLGitGeLXrlqgA q6Gg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=GS1g13cvmu/J8tisETDybWHkXTlbk7TLNosWxc0MwC8=; fh=3DtTz5by21pbP/chY8dljqxIcbwFGO7vwV3mx5lB3Y8=; b=LJRqh4HAdAnr02J/lzN2OOID/6nufqPx8bj8YnJHEXDFZ0eQaLHtI5POkKUlspQeJn Le5zGof9LZOf8bifwW1dgUXjV1XmcRk1O4ngSQGU5kl118L5qgO8emKu56H8mc5bCbq2 zh8RNrQvGRRiLQtzvnXojzy9gjMLj5RebEC75OJ3maVNFovk0V07SKXQ6msWdZmkwgKN mPT20q7laXVfMEI7qUlgkXmldimFcIKHDDbAq4O0suhv9TV9xMGYhDr1zR7D9wBLu0CB aAumqBJ+5bdhFL3slhbn9bPanByy4BosZlYay9pq7f/R3XuN/AgEsF6rG1QP2o9QPehw noIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=PcJCFGk4; arc=pass (i=1 spf=pass spfdomain=crudebyte.com dkim=pass dkdomain=crudebyte.com dmarc=pass fromdomain=crudebyte.com); spf=pass (google.com: domain of linux-kernel+bounces-42940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d4-20020a05620a204400b00783f409e769si4151074qka.751.2024.01.29.06.51.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:51:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=PcJCFGk4; arc=pass (i=1 spf=pass spfdomain=crudebyte.com dkim=pass dkdomain=crudebyte.com dmarc=pass fromdomain=crudebyte.com); spf=pass (google.com: domain of linux-kernel+bounces-42940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 63B0C1C23282 for ; Mon, 29 Jan 2024 14:51:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CEDC1534F4; Mon, 29 Jan 2024 14:51:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=crudebyte.com header.i=@crudebyte.com header.b="PcJCFGk4" Received: from kylie.crudebyte.com (kylie.crudebyte.com [5.189.157.229]) (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 3D084664DE; Mon, 29 Jan 2024 14:51:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.189.157.229 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539910; cv=none; b=fihlmBxuzFmANTA15DAcKW/WR0CO4oUSfk66OF7ITsZw48QtZ5l1hB8RHbo3DmZ454XyW3fDL7X7ZDFDidGL8mnJByRozok3yqjPWWpnxiWVEkfPhqIvcTyYZIlaxLGMshZAWdF00KCj56B/qrISDc8UE0HtOOyPKwsVSL022cU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706539910; c=relaxed/simple; bh=eQAgMHUu2TPgI3CFnF+f0gE8JUhEUD68C/EhB1GXcPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GTr8SheqFeK+G9INY8nS6M1OBEYajDZp86LzlOP6B2kD1F7tRO4xD6ee1ej32NYmtvrVpdb3WPCrwnU4CkX3VuKmKigI/SSC0Fr4KfVnzE6v+Yp0DNLGtpdn/M+u7uX7MdMaZ4q1xZGIgHgPlaJS205xHctAZ6X9jtlCwEX2foA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=crudebyte.com; spf=pass smtp.mailfrom=crudebyte.com; dkim=pass (4096-bit key) header.d=crudebyte.com header.i=@crudebyte.com header.b=PcJCFGk4; arc=none smtp.client-ip=5.189.157.229 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=crudebyte.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crudebyte.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=kylie; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=GS1g13cvmu/J8tisETDybWHkXTlbk7TLNosWxc0MwC8=; b=PcJCFGk4ksa/E0mFLnU2TIQ69u DEwjeE6DLNvO/6lOUc9fbyBzZPNxiitP8wh4JhB8mE13z/w3qthxXsUDhYtmznoHAdQHeZZIefQ4d POpA9v3dBfgfuI7IrKUhRWMnfIqd4wx9wP2GYOeToJItX1j/iDc/fI29P8I241mTd1l9CAaGfRyD7 dRZILfLCwR1b9QqdVZv26G4BryfvBgYyA0h/npKmj2dvjG2u8OUDm4Fd7WKA7pBq3B53hE9opDNZK pXb6g16BY9m0RDXZ7vg2wM9u96viDrJjBXxt7My/frzziBhDdGjN3qdMJtrtdnfi08JkClo9DA0yu DgPpHTqpCQz9uuTACPL0LtSpf7SQXGSCUX9/nov5OdcWWmvyQje1RaUOlUWEajUZbqHShEQXR5std bvL4oqHJehdCppCRKbnfFA7q3bhWfJVZvvsJZjepZ+W2K3Dpbc6Ikzsg2a7tA+SzOe3ETDOLJCbTH JbjZvyq7ZTIas3UsVRxXzBSkX+jUw3eAbrDybDYuv8BOB9U4/VgCZlNSKl+8LlvI4fRFY8xW3VqUz 2M9w8JwTxDab+D9GHCH+bYwvAVYCTNkgiIVl4AMRDuzoB9VtYZfMgmc0q3RM6yCRLi3NHn+72sGpO JqxcKYsVP71/mVG3h/1ptI/UoFkfe0VBZYmkWO6V8=; From: Christian Schoenebeck To: Eric Van Hensbergen , Dominique Martinet , Latchesar Ionkov , David Howells , Matthew Wilcox Cc: Jeff Layton , Christian Brauner , netfs@lists.linux.dev, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/3] 9p: Further netfslib-related changes Date: Mon, 29 Jan 2024 15:14:28 +0100 Message-ID: <1726980.McBZPkGeyK@silver> In-Reply-To: <20240129115512.1281624-1-dhowells@redhat.com> References: <20240129115512.1281624-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Monday, January 29, 2024 12:54:34 PM CET David Howells wrote: > Hi Eric, Dominique, > > Here are some netfslib-related changes we might want to consider applying > to 9p: > > (1) Enable large folio support for 9p. This is handled entirely by > netfslib and is already supported in afs. I wonder if we should limit > the maximum folio size to 1MiB to match the maximum I/O size in the 9p > protocol. The limit depends on user's 'msize' 9p client option and on the 9p transport implementation. The hard limit with virtio transport for instance is currently just 500k (patches for virtio 4MB limit fetching dust unfortunately). Would you see an advantage to limit folio size? I mean p9_client_read() etc. are automatically limiting the read/write chunk size accordingly. > (2) Make better use of netfslib's writethrough caching support by not > disabling caching for O_DSYNC. netfs_perform_write() will set up > and dispatch write requests as it copies data into the pagecache. > > (3) Always update netfs_inode::remote_size to reflect what we think the > server's idea of the file size is. This is separate from > inode::i_size which is our idea of what it should be if all of our > outstanding dirty data is committed. > > The patches can also be found here: > > https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-9p > > Thanks, > David > > David Howells (2): > 9p: Make better use of netfslib's writethrough caching > 9p: Always update remote_i_size in stat2inode > > Dominique Martinet (1): > 9p: Enable large folio support > > fs/9p/fid.h | 3 +-- > fs/9p/vfs_inode.c | 1 + > fs/9p/vfs_inode_dotl.c | 6 +++--- > 3 files changed, 5 insertions(+), 5 deletions(-)