From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91E29C433F5 for ; Thu, 21 Apr 2022 10:36:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242288AbiDUKjL (ORCPT ); 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 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