Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2196305iob; Thu, 5 May 2022 18:41:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCPakf6uLUZANhXuXelEMDR4rnCTz1DNYszSVyXTuBqD9PFEqm3nVdpA2A9QpVV3ijjuj6 X-Received: by 2002:a17:906:58cf:b0:6f4:4fe8:6092 with SMTP id e15-20020a17090658cf00b006f44fe86092mr934799ejs.160.1651801302049; Thu, 05 May 2022 18:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651801302; cv=none; d=google.com; s=arc-20160816; b=Onsxl00Y7u1HMlFX2D4bzdW15ZO2QtLn3TUo2xrVZfaXC7k8jTsiQIlLTOfflAjEzi 90Fcd0ld8hMNVn19u0lhkfd4Y7sO0VRn0dFsY3HzLBOxfy2DEvO3KC4Kq/8oBUkziZSh z4hN4o10kUW+JrHp9J4mGgV4Fj/gOVBW/8Asas/vI3SYx0Mf8639Mspt8SuCtCbrIXoF 3TVUrNEJTJq4n8YGy7wEk+91B67iOcPcEpIaOyw8rcN00tNvnrpkQDZQ/WyFvupkHyjC YAHhgRYU0OeCaCrW9tqeZ2ojwIMhXkGTyDXAOqdOnKVziEdzxdv06lMVX+7gHoiOrB18 kKbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rE2gX/bRFMhYFilz9M+Je3TFSv/LnyF6LKyyIeJ5Ek0=; b=D2ICSbUaapMNDZ+hUljRcZWdihsd1mLNNaZ5nQGNd0EEl+NggRG4Cc2FTq7JJdiyI/ DntlUw1g8AoqVor2KkY9t0JcymhDO0fVJuA26rFEgsvMrsNcotiEQT3al+Pgkf6czCR4 I8uSZGLpx/xFe2WNhYDTju5SiAgvbfOGBmTsdaL+qhj1tFWoFCdD9/fU+HjD/5ue1TD2 S+zTmGMl9wLdSTTFy4wVF+1uDVsJqPqQkmaegj7F9Q9qa07lR2yaRaMi3I/uWWmXj5Fr HJHT8VrP2VUOt+0b7f50DEDWv3MTjS6wQjHVsS1yayYG80XwZCzX99zqAkkFEm9AXxyO PSdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=lizzy header.b=T7n6n7sn; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y4-20020a1709060a8400b006e0f9bb12a5si3531617ejf.253.2022.05.05.18.41.19; Thu, 05 May 2022 18:41:42 -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=@crudebyte.com header.s=lizzy header.b=T7n6n7sn; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354585AbiEDTL1 (ORCPT + 99 others); Wed, 4 May 2022 15:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236470AbiEDTLY (ORCPT ); Wed, 4 May 2022 15:11:24 -0400 X-Greylist: delayed 2043 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 04 May 2022 12:07:47 PDT Received: from lizzy.crudebyte.com (lizzy.crudebyte.com [91.194.90.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 678543A5F7; Wed, 4 May 2022 12:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=rE2gX/bRFMhYFilz9M+Je3TFSv/LnyF6LKyyIeJ5Ek0=; b=T7n6n7snqTZpSmkVObfdZEp33V vz1bLq2kHQp48GpqsKjXZqo15K4ioh/XYm0DyhORvkOSyhdftlzAjw0otsFpoZzA175lmduE397kW zkXMfq4nIbe8BetGkmlLE2+qwgeT4nNj8AOKKwDwwzA/wNIxWu0mUhuM3bL3Cnf+HsoJsq5DY4MlN TpiKEWJHFW6mPdAHeInhIYuMynq2U4w9CA20OLcbClSE3P9gk7bZEkkZsIGttbmtKx4b6/Zm/+gN9 pLP7IDDBw1tvI+qFck/uZ+mvzT8QO6jZJRjaLM+mgpr7TVzhDrKspunqCB4AVDCOn6gmocMUAjcm6 gBIHdHhg==; From: Christian Schoenebeck To: asmadeus@codewreck.org Cc: David Howells , David Kahurani , davem@davemloft.net, ericvh@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, lucho@ionkov.net, netdev@vger.kernel.org, v9fs-developer@lists.sourceforge.net, Greg Kurz Subject: Re: 9p EBADF with cache enabled (Was: 9p fs-cache tests/benchmark (was: 9p fscache Duplicate cookie detected)) Date: Wed, 04 May 2022 20:33:36 +0200 Message-ID: <6688504.ZJKUV3z3ry@silver> In-Reply-To: References: <1817722.O6u07f4CCs@silver> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Dienstag, 3. Mai 2022 12:21:23 CEST asmadeus@codewreck.org wrote: [...] > - add some complex code to track the exact byte range that got updated > in some conditions e.g. WRONLY or read fails? > That'd still be useful depending on how the backend tracks file mode, > qemu as user with security_model=mapped-file keeps files 600 but with > passthrough or none qemu wouldn't be able to read the file regardless of > what we do on client... > Christian, if you still have an old kernel around did that use to work? Sorry, what was the question, i.e. what should I test / look for precisely? :) [...] > > > Also, can you get the contents of /proc/fs/fscache/stats from after > > > reproducing the problem? > > > > FS-Cache statistics > > (He probably wanted to confirm the new trace he added got hit with the > workaround pattern, I didn't get that far as I couldn't compile my > reproducer on that fs...) Yeah, I got that. But since his patch did not apply, I just dumped what I got so far in case the existing stats might be useful anyway. Best regards, Christian Schoenebeck