Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3904800ioa; Tue, 26 Apr 2022 12:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB7WeiPLQShTYcEIh+7GlB4yWLFhrwV9C/cMkoVWNLa8GBNwExVQV2My5EPIcxGoigdX1x X-Received: by 2002:a9d:6d02:0:b0:605:a80a:cfbd with SMTP id o2-20020a9d6d02000000b00605a80acfbdmr4780863otp.69.1650999820952; Tue, 26 Apr 2022 12:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650999820; cv=none; d=google.com; s=arc-20160816; b=chRW6fOdYmtigIywJxuUG7eODG3gUfoj5+5UGmXZpUodr+j5XKuzLHplJWCiM50aQb Cf+N+7GojM8EifTgftZq+5BQ/RenKEEzfcnlnYE5RBD1SwWSLCdIaYUEpXXmFrScyttt i5Hvg6USKnjZXry8UDIyDYBUvacB4jzUQX1yYZ/aAuBEC8YV5qF6Ung9PEAoyx5Aak8N 8wvdHsUf2UbFdTh89TQMzIDQxdDHmF7ynomBKnhM2p3tezKaDnyJar6exR+orU9Vuglb bHNI3qoLi6FN0GmaBPqiO/l6P4+RUKJMjbnFmszr096+D1CLbddz8076ItC2/SoS1SJr K0FA== 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=fj9TPZPeaJ77hv7VnUDtPRvcWeH3nXnlDCA0r5MVNDQ=; b=qL689hDkvEj+/1fe4+VQ3ZneNXWhR/Zb3ee/Qu6lQQuYXx6qVo65W03BoBEh5JwH3r zlOw4ka8dq/reX7hoCyCd6fEo9ZLfx2TTbTKrsToh7y1fNHhb/I+Kauzj+eCUt/TZVmV 5aiN5Iz6nmYzImbypnK4Cin6TetMVgDSytJFzjKd1ihL/BD6vDHlvAGUqA0JnQBXvPZR 7c+inAh8ECjt0nbGllY4s6TDHHhv1iCzgYvM0TjZp8h75S7nhZNW6I3ATFGdEIgNVofB iOA5gRDxk/Y3doEsQpUo1xhoFp06lkAb4bIa3sJZB+PtTe8mOoIZRMogZTfp622phemY q9Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=fYGzlnHR; 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 c26-20020a9d67da000000b00605720c5278si10190310otn.286.2022.04.26.12.03.24; Tue, 26 Apr 2022 12:03:40 -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=kylie header.b=fYGzlnHR; 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 S1348434AbiDZPlx (ORCPT + 99 others); Tue, 26 Apr 2022 11:41:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343792AbiDZPlw (ORCPT ); Tue, 26 Apr 2022 11:41:52 -0400 Received: from kylie.crudebyte.com (kylie.crudebyte.com [5.189.157.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DEB45AA62; Tue, 26 Apr 2022 08:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=kylie; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=fj9TPZPeaJ77hv7VnUDtPRvcWeH3nXnlDCA0r5MVNDQ=; b=fYGzlnHRfohR0LgdCqIxKi6XB+ sXWizY+2kwiDVxGyfR9tf1NNEwFuxDDVKb/tnxWUVNOP3Iq8MjzMo4+E3KzgL04Sp7+65OF3L3siu riide0hOA1paUQpUC01oD5Imje2rYcpN8U+r/mcuobLPEFPymfeE9XGkCWwHDwpMXASZO1454oOov bgj1jpmihJNELx8L10AnLflNJ3cqmdD1gZN5xQPxWyiBX9Cu7M//u1eDiQyYIR+hwloWd8yxHYXc7 iTYnWSrVgKQOv4nOS4vrLWZapThmInl3RFaith8laO3E3rHhDVeLUjIf2qEYeHfbqJqcIbXn1BllL J4cdBWFiPtpoUrEhtICMIOGhHZeNdbYwMWS9UV9FNDyucUxUTgZ7QJveU2zoe7kr/ReEk9hfGiwl4 WZ/9Xql5IBavt3ILNBhTzaiOTqslV9+VbArcK5qO6DYg+YewBiWPdml+uZWgkfaPVXb9RTPm0mRWx B3OFRY5AZ6IkuhkgXGxb89Cps4KYIlW96DSLfXePm7a3hEE+bUXWe8AKXQVgaXszOGwaVnSUGrcrw ZEAxRR/Z9mizubTC9f59aHi3zaupBPwr3Sfb0FracV0Qr4y3CTn4mp5Nztw5Yy3vPbbGIF7zTlInT hYLl47/2IfeVQ5wDdBnweVyGEschux4btBdqBzrrA=; From: Christian Schoenebeck To: David Howells Cc: asmadeus@codewreck.org, 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: Tue, 26 Apr 2022 17:38:30 +0200 Message-ID: <1817722.O6u07f4CCs@silver> In-Reply-To: <3174158.1650895816@warthog.procyon.org.uk> References: <1817268.LulUJvKFVv@silver> <3174158.1650895816@warthog.procyon.org.uk> 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 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 Montag, 25. April 2022 16:10:16 CEST David Howells wrote: > There may be a quick and dirty workaround. I think the problem is that > unless the O_APPEND read starts at the beginning of a page, netfs is going > to enforce a read. Does the attached patch fix the problem? (note that > it's untested) Patch doesn't apply for me on master: checking file fs/9p/vfs_addr.c Hunk #1 FAILED at 291. 1 out of 1 hunk FAILED checking file fs/netfs/buffered_read.c Hunk #1 FAILED at 364. 1 out of 1 hunk FAILED checking file fs/netfs/internal.h checking file fs/netfs/stats.c Hunk #2 FAILED at 38. 1 out of 2 hunks FAILED commit d615b5416f8a1afeb82d13b238f8152c572d59c0 (HEAD -> master, origin/master, origin/HEAD) Merge: 0fc74d820a01 4d8ec9120819 Author: Linus Torvalds Date: Mon Apr 25 10:53:56 2022 -0700 What was is based on? > Also, can you get the contents of /proc/fs/fscache/stats from after > reproducing the problem? FS-Cache statistics Cookies: n=684 v=1 vcol=0 voom=0 Acquire: n=689 ok=689 oom=0 LRU : n=0 exp=0 rmv=0 drp=0 at=0 Invals : n=0 Updates: n=2095 rsz=0 rsn=0 Relinqs: n=5 rtr=0 drop=5 NoSpace: nwr=0 ncr=0 cull=0 IO : rd=0 wr=0 RdHelp : RA=974 RP=0 WB=13323 WBZ=2072 rr=0 sr=0 RdHelp : ZR=13854 sh=0 sk=2072 RdHelp : DL=14297 ds=14297 df=13322 di=0 RdHelp : RD=0 rs=0 rf=0 RdHelp : WR=0 ws=0 wf=0 Best regards, Christian Schoenebeck