Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7713798ybi; Thu, 1 Aug 2019 12:37:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxU/5A+le6r3wYH1FaDSVgcNfboowYL8cjNSHRREloxKZClxqn3Kwyc15Sy9xG8Qyd/l+aa X-Received: by 2002:a65:5043:: with SMTP id k3mr64076752pgo.406.1564688250599; Thu, 01 Aug 2019 12:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564688250; cv=none; d=google.com; s=arc-20160816; b=nayPGRr0mHzxIuxqFUFQPnINMw1tj+GihR4D7rDtu/w1j1c/QhqhTGaYMrrDPJyPip LKni7uO/K/lvTBz8DtFuBG2YulqmCbjKQlyP+5/zC4GJ8g40y2aMr/dqMFva24GA2sCU j9ebyzuRVUfXmRMfjicpGSm5sTbp45lq3zDS6y3GVmNhG8xdcODKELGbauxT6B+p4+NY PBt/hy32GWUODeEvp2g62zfNnkwQC3JtiIGoqaJtnYiZbxDQcHaCISaYYPnylTFD9xbP 0T4q41n/Rj/vBx8HanFINy7DIRYchGwia00r+lET/PZYQuSW7Xa2kptG/ghR/KJCKxLM Vqrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bLZu7sehjM/wY1wW4ky4cHzflr3wq1GyKM2G1VsZWag=; b=SNEJC/fBMMsNweA779Z3QKmTibgGFlUbr1lZrq/CiyVU5XPDTDjt5gGLOmQWYQ8t7k lqqDQ9+N/E7wYy528HJ+d9MkVjYgpRQH//NO6H/hqiuqxKXWHZIRDHUHeaaU+NMb4UxY wR7N/HPDEi8ZVKPmChAwPYie76Xr0AcrvUiYLtser781b5ywnFiwJX3b/qCcO5m+lV3O l3gXwng6FA9Su6Jwl9zMNyJfgTpO/lMbw8iBscnFSWyyv1EYE3t4FACbS0FzwDzTMBxy BuvlFAcDL3cSpnGab35IxSLj0Nkw8A+62xGMZtEYlxr5Ew1wAWk3VsmLXjh8RuOPhkei Sj6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si4795466pjo.75.2019.08.01.12.37.03; Thu, 01 Aug 2019 12:37:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388668AbfHATgz (ORCPT + 99 others); Thu, 1 Aug 2019 15:36:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44496 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388609AbfHATgz (ORCPT ); Thu, 1 Aug 2019 15:36:55 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 325AE3342DEB; Thu, 1 Aug 2019 19:36:55 +0000 (UTC) Received: from parsley.fieldses.org (ovpn-121-148.rdu2.redhat.com [10.10.121.148]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0B8E81001281; Thu, 1 Aug 2019 19:36:54 +0000 (UTC) Received: by parsley.fieldses.org (Postfix, from userid 2815) id 29FF01804A0; Thu, 1 Aug 2019 15:36:54 -0400 (EDT) Date: Thu, 1 Aug 2019 15:36:54 -0400 From: "J. Bruce Fields" To: Olga Kornievskaia Cc: "J. Bruce Fields" , linux-nfs Subject: Re: [PATCH v4 5/8] NFSD check stateids against copy stateids Message-ID: <20190801193654.GA12211@parsley.fieldses.org> References: <20190723205846.GB19559@fieldses.org> <20190731215118.GA13311@parsley.fieldses.org> <20190801151239.GC17654@fieldses.org> <20190801181158.GC19461@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 01 Aug 2019 19:36:55 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Aug 01, 2019 at 02:24:04PM -0400, Olga Kornievskaia wrote: > i was just looking at close_lru and delegation_lru but I guess that's > not a list of delegation or open stateids but rather some complex of > not deleting the stateid right away but moving it to nfs4_ol_stateid > and the list on the nfsd_net. Are you looking for something similar > for the copy_notify state or can I just keep a global list of the > nfs4_client and add and delete of that (not move to the delete later)? A global list seems like it should work if the locking's OK. --b.