Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp291482lqo; Thu, 9 May 2024 22:54:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVobHh+2glQMUu5hiB6WZtm7LxFitpHE8vfIXfWnZp5hQ6MJfTvC/xJIrKMG5eR8Ij0GGNgrO2BhAz0xaRCPnDZJtG/EeQtLGBemgE19w== X-Google-Smtp-Source: AGHT+IE2xCBo37Z+wy2PD0zldDM1jHJFIkOuXdysbjmcCzRbmZJ7GFmlnLJYCbE+wHuFp9WSJ2t0 X-Received: by 2002:a05:620a:a5c:b0:792:966d:a44c with SMTP id af79cd13be357-792c759ab79mr160630985a.26.1715320448230; Thu, 09 May 2024 22:54:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715320448; cv=pass; d=google.com; s=arc-20160816; b=p33Tvrj/1XPdTSEA1bTthDOySlAjiijXXRD/4PLC5fat6Ja3fCX5Jc0I4cdacDwjgR VpTHCzFFcs+EzzdIcVdpHW0lMrRRD2ZO2F64d8T1lVRgNnmVqIeJFVjfAK8zQ/Jnk7XH qB2UxAO7B5zFEJ0bvWUYQssywlOEYQYdl9QiLFP92NFx86FUvPdOv0x6XJZ+OrFHAlb9 oIs6ATSoYmUpRvpPxpex7tAPByHYe26naweev013uRuA350e/8B55gZFxbpvaNgDT4Fh 8ry3Vs60RfBOnGW+kjdzpxE1CR/BNzNcgbHdkSpf3pWPOsXoFV9aVvxmpiRTLvIhOCYu EcYA== 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=pb53mmGBdA39Om/S6gifWUIT/OZjQtmNrFO1eNmJ+LA=; fh=hPfEIz48AOZtM/peNR23n7DStFan8Nj2DGg0+BK5cF0=; b=DgbQWwWognFoHjo/SIQzV8x5Xunte6NEhmoJTqM7nDaQdel2ogZJd39UllSNtZcv5C U/y89FRaTO4cFISTE9dhzXxvoahnMB3KLQpiKzQq/nVHo8KlVk5cUJBH6YOmXwfIeQfG ncIREK0UDX1FROXrEo1vGzDSODRx+P7Dvox7Rs58BvqHOWDIq+8LS+h0ANqEpCge3ntB SNxIH8OmIbxuH5psCuK0UZit1Jxu2TWJW2ec1cPxTjNmD8Wo74BMmcxiiKsWlAKobZv6 bvnwcUzo6EpRXUfYridOCanfcWVL/4778BwgH2sQnMupEaFZCS1mgc14koznJqFAPL9T ovOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="lc9/js3I"; 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-3228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3228-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. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf364e91si274213985a.604.2024.05.09.22.54.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 22:54:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3228-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=@canonical.com header.s=20210705 header.b="lc9/js3I"; 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-3228-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3228-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 E14181C212F7 for ; Fri, 10 May 2024 05:54:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2900E157A4D; Fri, 10 May 2024 05:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="lc9/js3I" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (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 6BF351527A0 for ; Fri, 10 May 2024 05:53:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715320441; cv=none; b=cS/LemGUA+vrbDLkwRlww9bOuwvZiemwtmANjD7PPVSCQcpS2SnGDfUNGom8KVy7Jymp7ocpfcvIdgeIY5ovevIgza/O/UM8dvWbdZtshmjy5ffLclEsJTSjpFGip5JEThhRK8Ou6bRgXk8JWVGwUZZ6Ib/m7cXLg4QE+0vDdS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715320441; c=relaxed/simple; bh=4PEitjlgb+KO6v9/1VnUNw8pVTM6GDPJ4mUKQsGr/KM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=stZSX9p4Pfby6hN89bDGiXN4foO3F6ehsOxCz8U+GrFl3ukbdMBsjS1nhmlHeMX/M/a8Nd3qfGBHIgSCyZjErY4I8imYKP4z5fhaKcirAAWRdcugXtkew45nmLz6XCDs0WBIxCvMXgBdi4El31v9lnJ/AxjH6RLmoWRFkOe5qMk= 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=lc9/js3I; arc=none smtp.client-ip=185.125.188.122 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-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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-0.canonical.com (Postfix) with ESMTPS id D051C411FA for ; Fri, 10 May 2024 05:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1715320435; bh=pb53mmGBdA39Om/S6gifWUIT/OZjQtmNrFO1eNmJ+LA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=lc9/js3Igi2d+FF9o7mqGr1bWPXeF+NVTbzNHdvfAMidNges6cXEmNKSGevcQ/4pM IklAiEzrQGPOwgst6GRSlK9ry19SC9rYeJN/hLFjoD5Xd4nJWICTGO3u0uXpGOzvrc CiO+K2Kgpnew8vRm8YquRNA5tF4QH8uRYrg50eMkCLVLlfXbR2sJFS7CucTmr6PZgH Q/D7Cg/uALctuoEDkzFMLWJtJKna0FX93CkJSJ/EV2Zt5iSmb9BQDAq04WJrgnSLso XwrPCnNEJrkahJN7MjZpcI+xtx0TcKWYBCiqdEijFONaeL9h54EcFs58GUpIUW3tYR 83YAaiON74HbQ== Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-572a175621bso1040952a12.3 for ; Thu, 09 May 2024 22:53:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715320435; x=1715925235; 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=pb53mmGBdA39Om/S6gifWUIT/OZjQtmNrFO1eNmJ+LA=; b=JXsMzvY8ZBhIalqSShB9cLjipQxi4o716dE4v3vCbFUsxBDkBG+DlFaG3Id8sDXTlX wyKON/0K18Gh6Kr26VL3dKvQlFz+TFpqVkytpauNaj308ODdmtL4GyIWmDrFd1KSmNUn F6WvQVS7nwfCx7oSw4eMtNepURUkgyEC+1cVdtXl5KinDGbSLILciMF0WZmlb6CFofZ8 7eOUjh9+MlDPk0vloGg6WnqMacX7qtMS3TSkmKtY8ARqUynDoDa/jvSvL9H72y6k0IEs GHAUhmjqoGkW4AKTNQxlFfa7TAn3LoPY3kWM1IfnM4RxL9pPjiwUkB1yXtSDxQgBgmFt bvoA== X-Forwarded-Encrypted: i=1; AJvYcCWNZv4F/5dkDocFM5oLeE2BBJr5z2iLZqvdsYPn19kiY/fFRQFWpVxR/oaYWAFsERTpL/27Gx+YvC+ItARmhvy9baBVtMjUnH1x X-Gm-Message-State: AOJu0YzYi+OlU4z2kDEOST2sG8p9RdLKpsgyGFS9v48jodrnOECFLZl3 Etwg/GLa8G33J1CgGZCP5C59ZcXFHa9lpXZ04pX8YVN5JF6mxHaGcDFPU4iC9gXm+8Nv6RKfVO6 LlsbSHD/hu8SSRYyTrJJTqONgCdRnSJbcSnRgrk5CFpvPlWBVztw3cKVpJaNv/UR7cQagxdtv/A == X-Received: by 2002:a50:bb05:0:b0:572:5f28:1f25 with SMTP id 4fb4d7f45d1cf-5734d5c1692mr1161723a12.7.1715320435058; Thu, 09 May 2024 22:53:55 -0700 (PDT) X-Received: by 2002:a50:bb05:0:b0:572:5f28:1f25 with SMTP id 4fb4d7f45d1cf-5734d5c1692mr1161698a12.7.1715320434315; Thu, 09 May 2024 22:53:54 -0700 (PDT) Received: from localhost (host-82-49-69-7.retail.telecomitalia.it. [82.49.69.7]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733c3229b5sm1436042a12.79.2024.05.09.22.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 22:53:53 -0700 (PDT) Date: Fri, 10 May 2024 07:53:52 +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> <1567252.1715290417@warthog.procyon.org.uk> 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: <1567252.1715290417@warthog.procyon.org.uk> On Thu, May 09, 2024 at 10:33:37PM +0100, David Howells wrote: > Andrea Righi wrote: > > > 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. > > Do you have a reproducer? > > I'll be at LSF next week, so if I can't fix it tomorrow, I won't be able to > poke at it until after that. > > David The only reproducer that I have at the moment is the autopkgtest command mentioned in the bug, that is a bit convoluted, I'll try to see if I can better isolate the problem and find a simpler reproducer, but I'll also be travelling next week to a Canonical event. At the moment I'll temporarily revert the commit (that seems to prevent the issue from happening) and I'll keep you posted if I find something. Thanks, -Andrea