Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp383182rdb; Mon, 18 Sep 2023 19:57:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQW+jfzDm6/b8IgSrSIy4bbKjWDYfENUpdTFFY0SVWnpsNyVCgvkYkjr2WlgN3JBGsSg5p X-Received: by 2002:a17:902:9303:b0:1c3:a1a8:969a with SMTP id bc3-20020a170902930300b001c3a1a8969amr9042525plb.8.1695092232348; Mon, 18 Sep 2023 19:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695092232; cv=none; d=google.com; s=arc-20160816; b=thk0Ya2oLm7Y0aDtuAfeqTWkjsKo2OBV/jEmlDPPKOHJXJAjQ+9ggBYLcqHIGty87K vPhjv/5nbQvYfgGBKGRXE5rVQG9PjhcrwvJ1YC8Tk7m16Q85ttK5msCcL2DBI0x0rfG9 3r5/ODFY8OBzJwzbmKI71alL7eGkXxWZRwAm67V/PM/OEdNWHOXTtwqtq2OAPh2ICI6N GQ3SFSCk9OtvcZ2tcPoIKbx/MeerxhESo4nNGzftokqU0eF/eK26l1S2X7i2wXnAABwJ cAwlBGpQ7L7h8v7StnYRr6IQ+hezu7dn2ghfQvfSqEs1A7cdImabfhE5aPE6sUy7PJEI 8GZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KhFFQ1dhi3PhAPzzJGz6elEY7IM7FwLQI78uAPJpPck=; fh=kMe8ipV+H2zZMCwplNV8b/uzUHICYp+b9TeU6KoaKrQ=; b=rC20LuWr7/nvNIiyndflSEqqm+SEXBy1j5ePbbOcnq/3idnZ8QtMfW9ZCDDKZmjzje QYG55GFBs87d86iePIO2nbfuESXM4hdvmC+8ahLPLm+kBD22FIp7481/Smo8+jGu6ZAn DDqrKmYKEgnZFgPuQ5TZ2EGSLvR6ANxG0Ky1xi9oLghdm7eyVFua5Len+HtB9d+A9aGY 8CCV6ZCOh9jFf1Jb6m5T8PVrDnP/TGrLpPEKLq+ayZiQJ57ptSALej6Ew72CIRUNMlvS yspDpQZam9MIgnicPQJ08pJSYk1O7SrORzDINIS+HojaG06F3pxCLlWtk4Pb9vZpjeOS goHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L+sRqt+K; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id n18-20020a170902e55200b001bdafae4b7dsi8533407plf.43.2023.09.18.19.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 19:57:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L+sRqt+K; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6CE748055551; Mon, 18 Sep 2023 13:36:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229447AbjIRUhD (ORCPT + 99 others); Mon, 18 Sep 2023 16:37:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjIRUhC (ORCPT ); Mon, 18 Sep 2023 16:37:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 149A910A for ; Mon, 18 Sep 2023 13:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695069369; 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=KhFFQ1dhi3PhAPzzJGz6elEY7IM7FwLQI78uAPJpPck=; b=L+sRqt+K7BQn4AO4R10e+gbtrMMOJIhqIz6lcXKtg0FKxuuvUB/7dViH/o29llkQn6h4YD RZoVC1INerJpeNllkZf4WfXbR/2X6Btj/NAwtqgNrLPU4T35eFu6CLk1RPA7xPwaYxActy xaKXOanYRO8ouNacegfPFiwEuQvE4tQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-119-GcdFVT6OPTCCWl4SUOH96w-1; Mon, 18 Sep 2023 16:36:05 -0400 X-MC-Unique: GcdFVT6OPTCCWl4SUOH96w-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7E29A85A5BE; Mon, 18 Sep 2023 20:36:05 +0000 (UTC) Received: from [192.168.37.1] (unknown [10.22.50.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ECC84167F8; Mon, 18 Sep 2023 20:36:04 +0000 (UTC) From: Benjamin Coddington To: trond.myklebust@hammerspace.com, anna@kernel.org Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH v2] NFSv4: fairly test all delegations on a SEQ4_ revocation Date: Mon, 18 Sep 2023 16:36:03 -0400 Message-ID: In-Reply-To: References: <426fa7ac71b4c9496039cc16169029a5abcb6dc5.1692902495.git.bcodding@redhat.com> <6c85bc9cc6bd8d70fe0e74b096c72944f61874a7.1692903063.git.bcodding@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 18 Sep 2023 13:36:59 -0700 (PDT) On 14 Sep 2023, at 9:18, Benjamin Coddington wrote: > On 24 Aug 2023, at 14:52, Benjamin Coddington wrote: > >> When the client is required to use TEST_STATEID to discover which >> delegation(s) have been revoked, it may continually test delegations at the >> head of the list if the server continues to be unsatisfied and send >> SEQ4_STATUS_RECALLABLE_STATE_REVOKED. For a large number of delegations >> this behavior is prone to live-lock because the client may never be able to >> test and free revoked state at the end of the list since the >> SEQ4_STATUS_RECALLABLE_STATE_REVOKED will cause us to flag delegations at >> the head of the list to be tested. This problem is further exacerbated by >> the state manager's willingness to be scheduled out on a busy system while >> testing the list of delegations. >> >> Keep a generation counter for each attempt to test all delegations, and >> skip delegations that have already been tested in the current pass. >> >> Signed-off-by: Benjamin Coddington > > This one went through the ringer in an environment that saw multiple clients > live-locking, and resolves the problem for them. They asked me to add: > > Tested-by: Torkil Svensgaard > Tested-by: Ruben Vestergaard > > Ben Did this one get rejected with a reason? This fix could also be implemented with flag (as I mentioned in a reply on v2). Ben