Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3864279rwl; Mon, 27 Mar 2023 22:17:43 -0700 (PDT) X-Google-Smtp-Source: AKy350Y174vs2xzubkTS6bbT06l1lfq4br22RqTQMB1OVKpzj/t7ZOqphE3LZVZS2TJn5LKkuB3+ X-Received: by 2002:a17:906:1501:b0:93e:9362:7607 with SMTP id b1-20020a170906150100b0093e93627607mr12321905ejd.20.1679980663662; Mon, 27 Mar 2023 22:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679980663; cv=none; d=google.com; s=arc-20160816; b=o4OJxeOB4E+9/tT2IqDL3G9wRvv1TJpG4pBy4XR4ou2ib1oVmr9kiflSxjnSvbHr/Q XSQyKas42jEO44Qxf9+QkwoajMf3Z4QdYz94ByilFWn5XDfNKbMQIZVD3E8op1oq5cyv qM9VFzgWbbU0mdiWtafg1uv3Fv9WtBEdGbiyO5qogznNXczsV8lNYSMFd0rfGXmT2ZWC m32qQWPXf0vvNLTv4oFKnuZ3Hx2bBfCjVY1Tj3kWXvmQows5dmiehZe3PFeCkbY1U+7d xrsoctjvdjQWn6uJWPBkw+CrfyXzk09eHziaXZULp3H/oFXQvhIMqvNrKwR++r6tFs7W 97gQ== 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=c+upOLAl1tNic16x8Kml180+4+m4/ZhbaMD9TGfmxxs=; b=C7669RrwPLaSFNwynsg1lv74/ZKvoJVjW3plGpn95+F9lYMyM4q9ep0q5MvU4q3X5Q SzA8bQ70ZDRySilZwprgnk0ypCYUueTG0TK3dE9QVIAy0DwWRChcbwNUZ/it6JDOiRT0 FTnzv4wbIb4yjt8YTIyVKRm7h8JETIR3cbH5xrG74bWiJNE9GAxcaw1NLu2UOn61hHko 4ti06WvfcWwOlNAXjVN/zZ8fqPk2PMzKS5H1itfawNjoFPUjTQZeqil41hQOKnWfwv+V 1TOHo+Ej8pTVjMNX+VcKf2+mfPktzy5a0cwL754rCE8W0Eh3/XLhSx3Z17e6tFUWAVhZ FVVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=fKGRKKka; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a170906a28d00b00932dac6402csi25375304ejz.370.2023.03.27.22.17.18; Mon, 27 Mar 2023 22:17:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=fKGRKKka; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbjC1FOp (ORCPT + 99 others); Tue, 28 Mar 2023 01:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjC1FOn (ORCPT ); Tue, 28 Mar 2023 01:14:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C93010DE for ; Mon, 27 Mar 2023 22:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=c+upOLAl1tNic16x8Kml180+4+m4/ZhbaMD9TGfmxxs=; b=fKGRKKkajfjv/3r8kcgNgFQfnP ikAfkwv4pEVGu1o8CVFNaLzRiEME/UkqQWM+50kX8UwmxxNrySdrHVZiFVyVVCp6LHsCCMW4l7Aaq VISqY0jRfjcgpSbf4jTNXj0ZZAOaddN9RU8H40G+o/+e0hm2ZRSBdP5Q8piYFC6GEB1tOyl9leUqd AnLBLn2a3zmQokWbjKZokz7VD9V234oSaNtlzWAVDhdY6MVnLBK7puPV6n9WYqnjdGpb9nb+YSnc0 Rgmj1nu28F+MvOTyEcvGYg+N2heuu+xsfCm7o1kIB7WLirtaN+TGL4jxlkQsY0P4vg+qAfChjzgXG IvqkkaWQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1ph1fH-00DA9M-2y; Tue, 28 Mar 2023 05:14:35 +0000 Date: Mon, 27 Mar 2023 22:14:35 -0700 From: Luis Chamberlain To: Dominique Martinet Cc: Christian Schoenebeck , Eric Van Hensbergen , Josef Bacik , Jeff Layton , lucho@ionkov.net, v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, Amir Goldstein , Pankaj Raghav Subject: Re: 9p caching with cache=loose and cache=fscache Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 28, 2023 at 11:31:50AM +0900, Dominique Martinet wrote: > Luis Chamberlain wrote on Mon, Mar 27, 2023 at 10:39:54AM -0700: > > > I have fixed what > > > I hope to be my last bug with the new patch series so it should be > > > going into linux-next today. > > > > Nice, thanks, since kdevops relies on a host kernel though and we strive > > to have stability for that, I personally like to recommend distro > > kernels and so they're a few kernel releases out of date. So debian-testing > > is on 6.1 as of today for example. > > [...] > > - opts: "ro,trans=virtio,version=9p2000.L,posixacl,cache=loose" > > + opts: "ro,trans=virtio,version=9p2000.L,posixacl,cache=none" > > Yes, if you want something mostly coherent with the host, cache=none (or > cache=mmap if you need mmap, iirc linux build does for linking? if you > want to do that on guest...) is what you'll want to use on current > kernels. OK cool, we use 9p to build on the host and so all the guest has to do is just 'make modules_install install'. > > BTW the qemu wiki seems to suggest cache=loose and its why I used it on > > kdevops as a default. What about the following so to avoid folks running > > into similar issues? I can go and update the wiki too. > > I've added Christian in Cc for this point, he's more active on the qemu > side > (thread started here: > https://lkml.kernel.org/r/ZA0FEyOtRBvpIXbi@bombadil.infradead.org > ) > > I have no opinion on the current wording, the default is there for a > reason and it's a safe default (none), and cache=loose is clearly > described with "no attempts are made at consistency, intended for > exclusive, read-only mounts" which I think ought to be clear enough > (exclusive means not shared with the host), but if you think it's not > clear enough it probably isn't. It certainly was not. LUis