Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4377570rdb; Thu, 14 Sep 2023 23:24:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOhwEhtAOQhZlR6Za3rmtnDsRyLSfF67jRN4jOd7iSm6GdP/D8DO1Tr1lYii9tv/ZNWMSS X-Received: by 2002:a17:902:a98a:b0:1b8:400a:48f2 with SMTP id bh10-20020a170902a98a00b001b8400a48f2mr690554plb.62.1694759081526; Thu, 14 Sep 2023 23:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694759081; cv=none; d=google.com; s=arc-20160816; b=QAoug3/AakB2DLv/mOq9xEWV/DPy0b1zwQ2skfV7EEcjESH+5m+yj+d3Xgxm1Nf/3x RH3Q4UQCc2mIha16dSnLd//1l5oWsXM8pWsZdP85i/ljcJrGNt6zMTuwYQG+lQg0Z5rU UIJ7/vPb3HZjzP0vLKvs28MMIvOi0i3vWdJoOdHnP9NKjWfvVBpH4sDqA5fn35hQ+4cy YwlHNtUF0W9F+ZbJSUdUMW7L4OzbQjiOx/X5KKSQyvGR02PRAGbH0o2Y0fiVx0NmJglj XZaPLnmqLaqtfXKibNdTtGWuii+0RUobuDzx84PVr2D5yES03sm8JXVvoH0TNPYyJ0yR bOvQ== 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=G1WyEYvPM3QUaqgl3QrV/jla+92UgRRrt+4vi4hz7WI=; fh=kMe8ipV+H2zZMCwplNV8b/uzUHICYp+b9TeU6KoaKrQ=; b=pgQX3/voS1xhTqWjDEwxfLDHmNjDoXYcGCi1/T68KBUYA5qvc1eFcAO7F2UbdQ0ay5 3qVGRaLvXQApxfC2znGBfo+yw773UeDUryPb7D+hE7hUCFZPc23smT0gpmA3mVGc+DTd yc+/t6xbejWmBxjqeS7w1AW7BM3OeNZVmCSQNKRBh4SMfgYDzFrjdlATJ5I2MufVPR1y 543ZNP44XZDr1P4DafCj6I6fhGhCBvwkmoogXbPO8jsG2CgoSMvpYqcr51i5U5zFnKwr rr8N2zjJSpjcbGBXZw7AUeBTK5xeij8jxADTbsv0Fx4Sea6R1VQALFdJyGS1GnaQrMMf YyYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ys8KgaaG; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l6-20020a170903120600b001bdd0d0530dsi2995633plh.129.2023.09.14.23.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 23:24:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ys8KgaaG; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id CE4878411D50; Thu, 14 Sep 2023 06:19:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239012AbjINNTX (ORCPT + 99 others); Thu, 14 Sep 2023 09:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239060AbjINNTH (ORCPT ); Thu, 14 Sep 2023 09:19:07 -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 666EA210C for ; Thu, 14 Sep 2023 06:18:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694697494; 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=G1WyEYvPM3QUaqgl3QrV/jla+92UgRRrt+4vi4hz7WI=; b=Ys8KgaaG+/I9E7jWoHBMiaR36Cu+sLZA7Fgs3nw16BBJRVfkGBnhjxayLiaQ9M2647XqNQ BCJrkt3MO29wc+Kins3R18DNKu45iOYFtkW0zGcMu1L+PA8hLjHoYGkUsXKBVSPiRaxlCA u3nvOSpDE6VaZPt12DiBDrKPIFUQ/PA= 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-172-AavwOOW0N0qhaztPUMsmLg-1; Thu, 14 Sep 2023 09:18:11 -0400 X-MC-Unique: AavwOOW0N0qhaztPUMsmLg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 18D8E80590C; Thu, 14 Sep 2023 13:18:11 +0000 (UTC) Received: from [100.85.132.103] (unknown [10.22.50.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87049200BFEA; Thu, 14 Sep 2023 13:18:10 +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: Thu, 14 Sep 2023 09:18:09 -0400 Message-ID: In-Reply-To: <6c85bc9cc6bd8d70fe0e74b096c72944f61874a7.1692903063.git.bcodding@redhat.com> 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.6 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 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 06:19:23 -0700 (PDT) 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