Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1790281iog; Thu, 16 Jun 2022 14:01:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vnq5YEKgVjMCMN81SwCFlumbs7m/kY1ydtKggqmgRXap7d3SAEhlbyiG4vNZFC1x8RFcj2 X-Received: by 2002:a17:902:f646:b0:168:e2da:8931 with SMTP id m6-20020a170902f64600b00168e2da8931mr6479935plg.84.1655413276841; Thu, 16 Jun 2022 14:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655413276; cv=none; d=google.com; s=arc-20160816; b=0IWtZCRSegfAusJYYIdTC27ktJBxKyJa/vDvD7KuOmWd9hBEt1hXsmN21wQGFpWXqr iWVaySGpaVHHkVdbVIGDQ7AiZ6TUy0rSNG0ZwH75Xjdl9Umf320zsc7fFWPVwB4B2WBc lOSCRc7IKvh2lgmFP53XNZ2yi1BW2vgIjGpgCLWgpJ6VD3qubC65gfrBUNjUX1t3U7K2 0weVZ5wYhtxdDZkccM0MA9FXoyCiB7yTyQHc2qBGa8pAYyYjzxFJxd6eusYKT+jI1EBG sVUGHgmeqFpYV1N0lYkejCUflG3yJAQOzjBBtHoHeoNEOVikQYEKEe8H2wh0g0mN29Zi FM+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=X/9Mnt59MpOxvWO59sXdsi9u5n4Xq1/JhwqX4dEqABs=; b=WHrQC1yCVNrYKRODDiMByIfnqkFMsIQHpqF9VLDT4rablIIZsGYUwU6AHmGktgrqg+ jbI6dU3E3K3xAs2Ckhtewqun91/4mwuci+OFmzOa+WrCYcwKzQa4srjbVH63/9Jc+EeO EEqLOqsyqC7c50Us4T6CqB+LAcJeAwVS9IG1i0OhAPFrDCDkWxECD6eVZoW6pwTGXEqf 16xHmRIO+FzvqodMU5UDaaa6rbn+0qmGqV0u4EcBWTHk163IEGrYhZ029Z4CFI7nfUP1 mWz1FyiQN7AU6St9OvTD52LvvmkXd/Gk7X1ZWDRZ3JV7FPe2cWwlSD948h/xthn9lOlt 9o0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b="JoqVs5/U"; dkim=pass header.i=@codewreck.org header.s=2 header.b=KQYxpI9E; 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=codewreck.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt25-20020a056a00439900b005188b59f9f6si3469056pfb.24.2022.06.16.14.00.52; Thu, 16 Jun 2022 14:01:16 -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=@codewreck.org header.s=2 header.b="JoqVs5/U"; dkim=pass header.i=@codewreck.org header.s=2 header.b=KQYxpI9E; 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=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378379AbiFPUyT (ORCPT + 99 others); Thu, 16 Jun 2022 16:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbiFPUyL (ORCPT ); Thu, 16 Jun 2022 16:54:11 -0400 X-Greylist: delayed 25331 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 16 Jun 2022 13:54:05 PDT Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90EEF5AED6; Thu, 16 Jun 2022 13:54:05 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id 3677FC01C; Thu, 16 Jun 2022 22:54:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1655412844; bh=X/9Mnt59MpOxvWO59sXdsi9u5n4Xq1/JhwqX4dEqABs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JoqVs5/UNitWWr0njvnA/+JKPeUjQvQ95A8K6WEcSWEJKRmm9H0yW7blkvGrDgWlH AUYSXMobBMbVMg/MxHGCHwqnG56mpLlwKhFfuR2ifjZGNqoX1KZ3h0OQvWvcXQtdVy vELCHD4L6Ctaq7cV7jblsJTgzWrheYU3bKbIPCZQTAnKVtpcEVlRPRllNOqGBmu9RQ 6KS0VI66q2FKjhbgic+sMn7debdfHEgnyd6sXjzddTvMFcN6wog37JjhjeUfzix+NY 5pf3r8QYkQ7IiYBls+6K+2AmTDrYp1Wzu0NCV02XhuW4Kb6Lr8SkMgrV+FCGTvp7tV bOCPC7zEnvZ1Q== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: 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 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id 2D342C009; Thu, 16 Jun 2022 22:54:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1655412843; bh=X/9Mnt59MpOxvWO59sXdsi9u5n4Xq1/JhwqX4dEqABs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KQYxpI9EUKW9gNY7pUpW5oLCxetbUStRGqpC7RfFJAfas8VEzTfxcg2D1uaZrv58U 1it6igOsJHiXHaBKCRA7Hl980tJQCvIw8rz7S9hsvwHPWmrzskbOHw6zl7fTz6WBNu FhWj0bJ55znDeBC3fnuXK8vgPEdW6+cnQ17o0OwY6YIdq/fsrRQBigLdHJXn8ZpClb m1bpoMkSeSCyZTVqriB7qb2xNe9Eca4b0CjUgH76VZvvPbZ5kd7jJ2kL1lauc6gZwP LcEB3YoT/6hdWhbXdkY1m/rB57grS610znEtFx7+hNFrdHbO+MZDilr1gXtTlJsTqu mEhCmA8ZBPC4Q== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id 0a286bde; Thu, 16 Jun 2022 20:53:57 +0000 (UTC) Date: Fri, 17 Jun 2022 05:53:42 +0900 From: Dominique Martinet To: Christian Schoenebeck Cc: Eric Van Hensbergen , Latchesar Ionkov , David Howells , linux-fsdevel@vger.kernel.org, stable@vger.kernel.org, v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 9p: fix EBADF errors in cached mode Message-ID: References: <15767273.MGizftpLG7@silver> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <15767273.MGizftpLG7@silver> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christian Schoenebeck wrote on Thu, Jun 16, 2022 at 10:14:16PM +0200: > I tested all 3 variants today, and they were all behaving correctly (no EBADF > errors anymore, no other side effects observed). Thanks! > The minimalistic version (i.e. your initial suggestion) performed 20% slower > in my tests, but that could be due to the fact that it was simply the 1st > version I tested, so caching on host side might be the reason. If necessary I > can check the performance aspect more thoroughly. hmm, yeah we open the writeback fids anyway so I'm not sure what would be really different performance-wise, but I'd tend to go with the most restricted change anyway. > Personally I would at least use the NETFS_READ_FOR_WRITE version, but that's > up to you. On doubt, clarify with David's plans. > > Feel free to add my RB and TB tags to any of the 3 version(s) you end up > queuing: > > Reviewed-by: Christian Schoenebeck > Tested-by: Christian Schoenebeck Thanks, I'll add these and resend the last version for archival on the list / commit message wording check. At last that issue closed... -- Dominique