Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7110998rdb; Wed, 3 Jan 2024 05:10:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFj0w93jc30zLnG8MiGU7NbqLLC1nIJYrm3bH4ygKOOSis9o9ruTpf5XRhPsu/x2rbT3htu X-Received: by 2002:a05:6e02:19ce:b0:35f:cf79:4cea with SMTP id r14-20020a056e0219ce00b0035fcf794ceamr30177064ill.65.1704287452104; Wed, 03 Jan 2024 05:10:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704287452; cv=none; d=google.com; s=arc-20160816; b=SOIioO/M9H9PksSmEfkdbiFu2/zRHVhBAa0c4fpZtbKcBHEU7mubYYF19CkL5JiJ7d vjKk3kKlnGk5rdOuspbJpyOPGNk+KMHUK9VYoHlTnPzEcoT/LRrzUMcT1TE3uvGOObXw 1S1VHyYkj+90yKGH7fymssBTJwNAUeXoIZfTSK3QiNEWeSi3pmCse9D5RWeh7q19tcpz n0Fot3Yr9p4i4W0LVaOJMbzyL2b42zAKONg+0rTcS3vq2DYoiIBVmJCUGtmh+A3yWO73 33vvs0scAP3f7v7m5fiqg0DkVvfPE91NFzL14fto4VRUb0cgT/lUdODBl0gSziG1FLA8 uSIQ== ARC-Message-Signature: i=1; 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:dkim-signature; bh=nNLSz3IQyDfOhUPqR/BsW6lP6xUFuUzC9P2KcyoDIGM=; fh=/kBCEpQVHifpz4aZtr+bWsLrO3xjJ/89jWk92wuQ1y4=; b=qPXfHimk9OTX+7kBvkjkpwO9TIuWj30cooaXLz6j5vgFZWUIFkCbjCRcHM7Ml2DOPk UJE+ZNTrdYkugK5lTsE9GIoE30YgKWwYn5+ebSOX1ctjNwlYrz+mD/ao/SRglmsf8JCN zSHeMAya0nmaTiG1VRA8kh1U3FoRDDRiMioiEtogoLZs8ciwyzt/JtvnGJVq3iIFc2vd XlV5Afu7zr4wq17Jb1Cg4m2jkpWantcy2tmFZtmld4wfqF0l2sVnzcvFKYLxuXL5apvC cPkYd9LeRP14ch2p8mFu15TPfYH/EEIkkdldiimtLrIS8ViyzbUGrI/QjOWvzX6GfW+y 4wXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=DSU2cI4s; dkim=pass header.i=@codewreck.org header.s=2 header.b=alfUp47L; spf=pass (google.com: domain of linux-nfs+bounces-874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bj19-20020a056a02019300b005be00224982si23237818pgb.381.2024.01.03.05.10.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:10:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=DSU2cI4s; dkim=pass header.i=@codewreck.org header.s=2 header.b=alfUp47L; spf=pass (google.com: domain of linux-nfs+bounces-874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 14B54B2302E for ; Wed, 3 Jan 2024 13:10:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CEA119472; Wed, 3 Jan 2024 13:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="DSU2cI4s"; dkim=pass (2048-bit key) header.d=codewreck.org header.i=@codewreck.org header.b="alfUp47L" X-Original-To: linux-nfs@vger.kernel.org Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) (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 D59DC199A1; Wed, 3 Jan 2024 13:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codewreck.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codewreck.org Received: by nautica.notk.org (Postfix, from userid 108) id 6E37AC026; Wed, 3 Jan 2024 14:10:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1704287439; bh=nNLSz3IQyDfOhUPqR/BsW6lP6xUFuUzC9P2KcyoDIGM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DSU2cI4sZf90qwRfnaXnznL7jIlbzmSuznoRXPqYlvafbrPQAEpuqVf2EctFivLL6 EqQN+rDFO5kMoPHxJsvZDTAz+FJnuG+NOehkLZUbpCJ0tUKQkB28Zcwxm9l8ssujoS fcA25Qoqq4QAUxL+lAcgNB9Sx3uClqJlcs8e3viPQhl3m7Dq4oc/c1qVCCzJ0KfxLs ZqQs6Cabvh5jwJE20Pl5v9/8uuZxvuSewqEme5RfqMfM0x7Ec3a29K9sH3O92lMCvt /X30sNmyGkn+YL/BiQ2P2XJBodDL6HyR4c3vIyS+H7XbWYfYTW2Ni9mPC9/JdzWIbv qNaDmmKbdA6bQ== X-Spam-Level: Received: from gaia (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id A1D64C009; Wed, 3 Jan 2024 14:10:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1704287438; bh=nNLSz3IQyDfOhUPqR/BsW6lP6xUFuUzC9P2KcyoDIGM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=alfUp47LcXS8Qn3+pM3575baz2IlmljGvcJijYZ9Gud9tjALEz1+mys8tps/nOpEs 3l1lyYmuJdM0qPObSIEky+UOMT/TorZQ56huXodWvki8aQnQXO7yZ0uBLQSa7pOD1t 5SyVGBURpK+D8S7dKO9j2yjtif7k4yrKlPi7+9WDUwkil5dcygJciP5lVbS/leQz6d Lg/0Ri3BlT4O7FYFqnkqSzJ6nN8gMb65wTuW8kwop7fUFl3eXZM/I4SkkKSKowIeJB a9FdxA4xJ9MPVFG92oNtP53beEe2cJg9l6m92bTZnVgUcigZLYpFkHAU6WrBAXePZb 04dlr6Z5i13vw== Received: from localhost (gaia [local]) by gaia (OpenSMTPD) with ESMTPA id 861cbe98; Wed, 3 Jan 2024 13:10:29 +0000 (UTC) Date: Wed, 3 Jan 2024 22:10:14 +0900 From: Dominique Martinet To: David Howells Cc: Eric Van Hensbergen , Latchesar Ionkov , Jeff Layton , Steve French , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , 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, Christian Schoenebeck Subject: Re: [PATCH] 9p: Fix initialisation of netfs_inode for 9p Message-ID: References: <20231221132400.1601991-41-dhowells@redhat.com> <20231221132400.1601991-1-dhowells@redhat.com> <292837.1704232179@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=utf-8 Content-Disposition: inline In-Reply-To: <292837.1704232179@warthog.procyon.org.uk> David Howells wrote on Tue, Jan 02, 2024 at 09:49:39PM +0000: > This needs a fix that I would fold in. Somehow it gets through xfstests > without it, but it seems problems can be caused with executables. Looking at a file without that patch we seem to be reading just zeroes off pre-existing files; I'm surprised xfstest doesn't have a write something/umount/mount/check content is identical test... (You're probably aware of this, but note for others this breaks with the rest of the patch series even if the big 9p patch isn't applied -- this is the main reason I'd rather just get the patch in this cycle, as the new patches got more tests with the full series than with the 9p writes patch dropped.) > 9p: Fix initialisation of netfs_inode for 9p > > The 9p filesystem is calling netfs_inode_init() in v9fs_init_inode() - > before the struct inode fields have been initialised from the obtained file > stats (ie. after v9fs_stat2inode*() has been called), but netfslib wants to > set a couple of its fields from i_size. Would it make sense to just always update netfs's ctx->remote_i_size in the various stat2inode calls instead? We don't have any cache coherency so if a file changes beneath us through an edit on the server (or through another client) hell will break loose anyway, but stat would update the inode's i_size so it'll likely be weird that the remote_i_size doesn't get updated. > Reported-by: Marc Dionne > Signed-off-by: David Howells > Tested-by: Marc Dionne > cc: Eric Van Hensbergen > cc: Latchesar Ionkov > cc: Dominique Martinet With that being said, it seems to do the immediate job: Acked-by: Dominique Martinet -- Dominique Martinet | Asmadeus