Received: by 2002:ab2:6816:0:b0:1f8:1780:a4ed with SMTP id t22csp27645lqo; Thu, 9 May 2024 10:15:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVnnH0tEEuklbgQBfCvvGdaRHGq4PcZxPDFmwcdtQUVHzP6k77us6ug75S1wX/eu+NIf0O7qYQzR+mbBlgwf41bovzCBQM4ynRnMz59+Q== X-Google-Smtp-Source: AGHT+IHJFjBSkypVJYRLelDpWrvdA37aPNypRyi74TnHfsyPuHifRol/pL1tAMfQXCIBM6X1odr2 X-Received: by 2002:a9d:4d85:0:b0:6ef:8860:b329 with SMTP id 46e09a7af769-6f0e92a6345mr199102a34.25.1715274945363; Thu, 09 May 2024 10:15:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715274945; cv=pass; d=google.com; s=arc-20160816; b=UA1NRprUu7sL31A7FrPJvz/18/8pYNcYKMznTUFT59FhIX+E8CgDHOiOrz52fNmGQd 07YTlHVMhHQReihAKVBa4ePlWX2OiqsIFcFR+RNKVrhZ/AnXQrl7JGMD9I94QJ1Cvn6Y eFxLDLsNWvAS9mzA4kD5bsYGC4HaliO0vG1ddeiU1TmghH4yqLXsv1KR+o2PHtGNav0T 5ZLzGxwGutBKJlWVrIfT2WUkb94kyS0RN3ccPtrDivIMjo4EZW/Um3RlfAxoMAudCgd6 f9v9HFRSXFe1hzMuo0eCZr3T3w74ynNS2V3oOJV0sUO5mOOgOzReA7aY2XDU74gyLl8U m0PQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=R13CNUyH1MbzjMY2CalRPAAS/uvh6wjQHgeABBOaJzE=; fh=G9/tPHVTdHT3H5drRSEocGd/x7HDIC8Qa43GFoamD5w=; b=KAB8KdQ/LEEvNCjlw5tsUnymuOoj+XiNLxAZxo1vVX01Yy1dynfjeGC/RUqF0yRd88 TNujcRuPuQs+807mLwlBiS16DIQNGzPhWj9dR2gOEsuRpwB+58xqJGF9QrZaMXmqxWft YQRQzlHOaNvD4IraCtidW+gGESwyaIKFrczDsVBa2iTrup5NtomjiKigobcVPtXVhnAj StRk1/SL8RkYOFBtoLx8Q8l7GY23X8VdV6dvb0yZ9sEroMlwkftI/No9DiC4YNnroONz 6E/8ROGwVEkRhZZt+sPn/3kfEluJ8CbQoVDXhlmJNlLIl9tafA2R8wQ47EfzOnWF0rif 7XbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=HIE23ZeU; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-nfs+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf38d815si182139485a.756.2024.05.09.10.15.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 10:15:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=HIE23ZeU; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-nfs+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.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 A2D071C2104C for ; Thu, 9 May 2024 17:15:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EB8ADF58; Thu, 9 May 2024 17:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="HIE23ZeU" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 AF445C8E2 for ; Thu, 9 May 2024 17:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715274939; cv=none; b=aV1eJVUMj3ODLCoM5TgS82VYpxVdxPufebMwwWxsuU4En27otgGf/T61dCqcjVF5iZ/vLWPEwK9rshW5z/3FNddJDMpK0l7DhiuxaPOo/xTG4/Whl/rIYfPJNsGP/NFfAWnrmAj3W5obuPCxlMxruj4XA5S3uvx1Dlg5fbQQccc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715274939; c=relaxed/simple; bh=I2b3mZDphqAOw1CzA9XXn8owOPYBXLxuDEHOZbykNDU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KdTUbNNMnCfmP6yzKKWaJxHVGl/Zr99KNePqNbrK1bBuvgbn235ZpGSftFMJtcXwAXkwI6p+DqHgxK/VKN+h5LsA0s6kWyLdnNVXpAyMNX1yPfTFJbfdrJu17AN9R6oOtXIhmmC8m9kT/YhKqhG2jyTE6EWP4vm+U/jbslZ62E0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=HIE23ZeU; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id A4B183FB75 for ; Thu, 9 May 2024 17:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1715274934; bh=R13CNUyH1MbzjMY2CalRPAAS/uvh6wjQHgeABBOaJzE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=HIE23ZeUFGpNub4mkJjolnmcnjKRiYIZCcxlle7qzx0QxPHfaQSaalKI6TzYaWHJi bLy2UvHNP5D7B3R4aW3+t/KG8h59aUSqA4sPFiaH7lvjNC3gzhv51blx0XD+bI0L/A tX+msuNNXItnYmoBpCRrGkFQJIxCZbw5kQMPRrWJ1OlrwOLptZepvDtHw0T9EPRg9S qnSS1wBFZB//Cu6J1M6PCBa8OtAz+16pQ5d1G5zF0WmqDHbVBAjniJWshKu6Q8m+ku 6QRzxKzQUTpg3I36rLwEU4KHB2eyEt0YvDTY30FUAp2A7NO+4mOBXSL1NF75qAB+wp 7gCLpXmZF7L7w== Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a59c3cf5f83so72962766b.2 for ; Thu, 09 May 2024 10:15:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715274931; x=1715879731; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=R13CNUyH1MbzjMY2CalRPAAS/uvh6wjQHgeABBOaJzE=; b=r0rKGKrp8pgIi2Y1ZHBETJksq1fJlqYV+oEBooTO4ZabuDvi7QL7PCgn8UYC6aiTqI FzlSPpyNVll/AhxH9qifwd3MtUg44etrD8VcN2IEpy3oZWHGG62D+AdqT2o7I+XhtVM5 a85nljuBV8XtN+5FE/lBbiNs8MiIDnWcRRn65Gqa3RBK/JEW//g6FfwIC/ysg88I382P nURAg5d9I7SZY6VCNHzuPEcxE9wfLe6WTuhkrZi9yeVMnyc4D/VO4vw6/KJyQrYSsex+ s0JgUxwzPGALVKuAK2NhnDnUYJgZzrwdSjkdXdjS7rvsmwgNdgmclGkJ69bjheOcDYHt OnkA== X-Forwarded-Encrypted: i=1; AJvYcCX+Ii5YhWF4w2OD05x6dh6Y+6+iSsp5TVd+798Rps6x8yHiHkvc7ulc3jKNF7FIvKiuE0pKMVvDSIcNWPgf1BHQydywn1/cPfUT X-Gm-Message-State: AOJu0Yypt8iYgitW/x+hnj3nkzv+4m9LGhgI8zAg5dSuXO7Z8jrT9jFl IIpHDYEXItn6PgWwMwCxuO/GQp8CtVkPjYwcp+TK55cPq8Qx05VdcOKipKxYzUpyaqede6vT17w rHZKY35WeWUbLu/v9lcvo0tj/SWQsq0UsHTcQsYLBAjsVdMSyHqnjymB7nViPvbxD8xsUdheORA == X-Received: by 2002:a17:906:3849:b0:a59:b02a:90dc with SMTP id a640c23a62f3a-a5a2d66ac03mr15005466b.54.1715274930682; Thu, 09 May 2024 10:15:30 -0700 (PDT) X-Received: by 2002:a17:906:3849:b0:a59:b02a:90dc with SMTP id a640c23a62f3a-a5a2d66ac03mr15001366b.54.1715274929765; Thu, 09 May 2024 10:15:29 -0700 (PDT) Received: from localhost (host-82-49-69-7.retail.telecomitalia.it. [82.49.69.7]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c81bfsm93194566b.129.2024.05.09.10.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 10:15:29 -0700 (PDT) Date: Thu, 9 May 2024 19:15:27 +0200 From: Andrea Righi To: David Howells Cc: Jeff Layton , Steve French , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Dominique Martinet , Eric Van Hensbergen , Ilya Dryomov , Christian Brauner , linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Latchesar Ionkov , Christian Schoenebeck Subject: Re: [PATCH v5 40/40] 9p: Use netfslib read/write_iter Message-ID: References: <20231221132400.1601991-1-dhowells@redhat.com> <20231221132400.1601991-41-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231221132400.1601991-41-dhowells@redhat.com> On Thu, Dec 21, 2023 at 01:23:35PM +0000, David Howells wrote: > Use netfslib's read and write iteration helpers, allowing netfslib to take > over the management of the page cache for 9p files and to manage local disk > caching. In particular, this eliminates write_begin, write_end, writepage > and all mentions of struct page and struct folio from 9p. > > Note that netfslib now offers the possibility of write-through caching if > that is desirable for 9p: just set the NETFS_ICTX_WRITETHROUGH flag in > v9inode->netfs.flags in v9fs_set_netfs_context(). > > Note also this is untested as I can't get ganesha.nfsd to correctly parse > the config to turn on 9p support. It looks like this patch has introduced a regression with autopkgtest, see: https://bugs.launchpad.net/bugs/2056461 I haven't looked at the details yet, I just did some bisecting and apparently reverting this one seems to fix the problem. Let me know if you want me to test something in particular or if you already have a potential fix. Otherwise I'll take a look. Thanks, -Andrea