Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp903199pxb; Fri, 22 Apr 2022 13:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuv5Uu0RtPrWaKqX0lASUYzT10hrZQwVad3GoraYplkcnxkNo/1/c53xwKcRWtFnNZ79sT X-Received: by 2002:aa7:8812:0:b0:50c:ee62:e6aa with SMTP id c18-20020aa78812000000b0050cee62e6aamr4621905pfo.13.1650660889653; Fri, 22 Apr 2022 13:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650660889; cv=none; d=google.com; s=arc-20160816; b=vMNa4KHHfxzYj27WKatmjjwqgYo2YMupyJeWPQbHqOV7yDTk27pRVZo8tdqeoUlWTF lAyJfqTvdbt/F9ev6s8xeVwImPulx+J4Mf9JUbXmTjSu0hVAYV0Eiucu9tskAVIIHHwo u06vJXOTCFEFBkv9zoEF4VfEukiqhbjvZAA1beeD7SJ9vyzENMH8hL+r03ViyK24Q5fE zY4qrFNpiYi7WVVxw0YgexDvhTAxBbuDF8a6b9A5hb8aEVnUyEf3I1GKJpwKbkZJMTu8 jkFmLgvyQFVCiSsw+U9uIL4OW4wdK1qZk66PkGHH3Uwl7pTxuBX+urNnu55aXkE0nR9f v3aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=CUudNcrJ1xRNDS1+KVl4Z0t857WYmRRKh3nXvmEZfk0=; b=dIUBmC0ZhqA5ipsIJc/e417lTao1VXwJxI9SrDGpTPHEt7nzdA5LKWufUA7/M9tu1f q/7wje26JVIxX041MtGBjGo22n6qO72Armsf6ZSYpAVpRnIup0+YkrqZDBk7Msie90rm EooGk0XhnaZmChYtWL9/SFZy4xKrpVOEyG5EO7FRxoqeeSJvXhaktSSpZndOV1cjOgRm WJdh7HLxxEvZhppxOMelfMKVe+NXgLNYn3aJ4P+0GaoGrXCLXS4baadC064Mvus38Ilq crcZBQVxQzoh97UPEYjIvhyr1OpIQjEw9bL4tSi8m4+WRoxK458B/dLQf5m2H8gD6m1v 0vQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="EguN0E/E"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s11-20020a170902b18b00b00156a6b13c1esi8636697plr.187.2022.04.22.13.54.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:54:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="EguN0E/E"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9D2E2C6E3C; Fri, 22 Apr 2022 12:49:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388452AbiDUKjL (ORCPT + 99 others); Thu, 21 Apr 2022 06:39:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244756AbiDUKjJ (ORCPT ); Thu, 21 Apr 2022 06:39:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58DE725580 for ; Thu, 21 Apr 2022 03:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650537379; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CUudNcrJ1xRNDS1+KVl4Z0t857WYmRRKh3nXvmEZfk0=; b=EguN0E/EbwfdszCC6SzUtof3DhIDDfeQ0fGSqUoWnaVUizu0fsIY4Po9SK/aPrDMpFWqL/ KBKil11FijMlwz+RJoM6UmeE4IwozGyvzOw2YwJfLJmkGode/BoGU7n43p/EBXusH3+uIn fo0bjqRfv/G3uVLzueC6d3kclVT3/bg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-626-nLlxoeJ0O0OU8ItYH0q6RA-1; Thu, 21 Apr 2022 06:36:16 -0400 X-MC-Unique: nLlxoeJ0O0OU8ItYH0q6RA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7DF5D29DD992; Thu, 21 Apr 2022 10:36:15 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id C67C140F4940; Thu, 21 Apr 2022 10:36:13 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <2551609.RCmPuZc3Qn@silver> <8420857.9FB56xACZ5@silver> To: asmadeus@codewreck.org Cc: dhowells@redhat.com, Christian Schoenebeck , 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)) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1050015.1650537372.1@warthog.procyon.org.uk> Date: Thu, 21 Apr 2022 11:36:12 +0100 Message-ID: <1050016.1650537372@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_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 asmadeus@codewreck.org wrote: > int fd = open(argv[1], O_WRONLY|O_APPEND); > if (fd < 0) > return 1; > if (write(fd, "test\n", 5) < 0) I think I need to implement the ability to store writes in non-uptodate pages without needing to read from the server as NFS does. This may fix the performance drop also. David