Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1893364rdb; Sun, 19 Nov 2023 15:22:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnWXZMeZLjZa98haoDGnDBRZ2zxxBjtwYQBGR9L3MsWbNxmFgcXPZ6/vn/fLINtJfqwtBR X-Received: by 2002:a05:6808:150d:b0:3a8:1c07:17d3 with SMTP id u13-20020a056808150d00b003a81c0717d3mr9979204oiw.19.1700436132134; Sun, 19 Nov 2023 15:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700436132; cv=none; d=google.com; s=arc-20160816; b=V1qUymE0Wae6CwfakrMrzNvWZ/7Sme2170WcmQU0IwaMbsz9Vzapm+IGcDHufRPKuS iYnIaCwfNRT6H82gjeO/9Xd5GaiYxwYgFDb468f9zwNkUL1HwHiMMH4BVI84fTkOoIWj A6UdT49JsHABEw3CwhsCDTJH1AgKS873PggM8phKLS9BJ5IXZD71lfwafM8sDmYO6mYX TKX35x+PwjmNeV04Hh9wrv7d4rCK23NSC49aawW7e8faUp62zUb7kxfARZkQe3yNoFtl 9C1UCt1WHskVZT+LJPuOjmwNN93ey8w0yAOrgnXRVat6dmafK0PA1bJyRTjCIaDUziPD VPpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=X5sW60m8r+jjM2DZGTaHYRSXuTNCBFFXoO1T02gH29U=; fh=HmrqYq5qjk3xA6tidfv4QO0+vHztazMqOteBU1qSCrc=; b=viafIIoUrol6kEPbOcN+3BhebRaJWFva6nv6Pmj1kHyZXgGj6xD9TNrZsDANPSB5Jn 6ws0DB7L+JJWBWirBaOMbodofXDNSyFRqmVH1+I39VHsTH2u7gHUODzGRXSkuHNkGdfn yiPvWVpXsBJ5aAJ8kRa3PHlncHvs+KR9gD1KzUCCOOQ61P+/GIJmWD9pyq/AqU8dpXEK 0yzNXLkI7Kaux9wnywus0pQ2oB0H9A2LvUZ/cdSd34e3tvS0Yzh2mysMqH5r//H9LGb1 aE7jOm6aSII3J2s8IS6B6bzeH5kgZe8EEM2AUGKgyK9MUOtPGdLiz4oC7zN10Tr7sLW/ GBqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ITQIRVCZ; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cb17-20020a056a02071100b00573f885c4easi6992317pgb.753.2023.11.19.15.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 15:22:12 -0800 (PST) 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=@suse.de header.s=susede2_rsa header.b=ITQIRVCZ; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3733A805DC56; Sun, 19 Nov 2023 15:22:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbjKSXWA (ORCPT + 99 others); Sun, 19 Nov 2023 18:22:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjKSXWA (ORCPT ); Sun, 19 Nov 2023 18:22:00 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE7F112D for ; Sun, 19 Nov 2023 15:21:56 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 716FC1F74A; Sun, 19 Nov 2023 23:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1700436115; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X5sW60m8r+jjM2DZGTaHYRSXuTNCBFFXoO1T02gH29U=; b=ITQIRVCZJ7fsAVTN2yp83mfQSkWgZ7TiaeU++8hL8E4c0nBMq0OJxh8o2fCDHNwmNzjlzh z5vEj78GhwBwlSMEryKS/vq+9judAHFV4QnPJzi+L8nJHl0iBimxT8lam6UEB1q3TCOpVx LRwpRYWW2lz7MvGdKRzKmxYs67Pu1n8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1700436115; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X5sW60m8r+jjM2DZGTaHYRSXuTNCBFFXoO1T02gH29U=; b=GCOw/hNmaGy+a4dQE2UtIp5l2Y1tfTEWQzH/KFcRIUCT6BzqAO4+j2Y5KWLSEGSIU7yX0n AxgR8mg4jnWwogBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4CBBC1377F; Sun, 19 Nov 2023 23:21:53 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 1W18AJGYWmV7cQAAMHmgww (envelope-from ); Sun, 19 Nov 2023 23:21:53 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Jeff Layton" Cc: "Chuck Lever" , linux-nfs@vger.kernel.org, "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" Subject: Re: [PATCH 0/9 v3] support admin-revocation of v4 state In-reply-to: <9e18d992cdccf56d26482adc8c1c4a6012c68f8e.camel@kernel.org> References: <20231117022121.23310-1-neilb@suse.de>, <9e18d992cdccf56d26482adc8c1c4a6012c68f8e.camel@kernel.org> Date: Mon, 20 Nov 2023 10:21:49 +1100 Message-id: <170043610989.19300.5572465091839523991@noble.neil.brown.name> Authentication-Results: smtp-out2.suse.de; none X-Spam-Score: 6.40 X-Spamd-Result: default: False [6.40 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(3.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_SPAM_LONG(3.50)[1.000]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[38.72%] X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Sun, 19 Nov 2023 15:22:09 -0800 (PST) On Fri, 17 Nov 2023, Jeff Layton wrote: > On Fri, 2023-11-17 at 13:18 +1100, NeilBrown wrote: > > This set adds a prequel series to my previous posting which addresses > > some locking problems around ->sc_type and splits that field into > > to separate fields: sc_type and sc_status. > > The recovation code is modified to accomodate these changed. > > > > Thanks > > NeilBrown > > > > [PATCH 1/9] nfsd: hold ->cl_lock for hash_delegation_locked() > > [PATCH 2/9] nfsd: avoid race after unhash_delegation_locked() > > [PATCH 3/9] nfsd: split sc_status out of sc_type > > [PATCH 4/9] nfsd: prepare for supporting admin-revocation of state > > [PATCH 5/9] nfsd: allow admin-revoked state to appear in > > [PATCH 6/9] nfsd: allow admin-revoked NFSv4.0 state to be freed. > > [PATCH 7/9] nfsd: allow lock state ids to be revoked and then freed > > [PATCH 8/9] nfsd: allow open state ids to be revoked and then freed > > [PATCH 9/9] nfsd: allow delegation state ids to be revoked and then > > > > Nice set. I like this overall. One (other) question: do we need to add > handling for revoking layout stateids as well? I guess so... I don't give much thought to layout stateids. They are used in LAYOUTGET LAYOUTCOMMIT LAYOUTRETURN. (it's seems odd that they aren't used in READ/WRITE....) I guess we need to drop the ref on ->ls_file and maybe unlock the vfs lease.... I wonder if I should just use ->sc_free for that. Maybe ->sc_free could take a 'revoke_only' arg which causes it to free resources but not free the stateid itself. Maybe that would make the code cleaner. NeilBrown > > I'll plan to pull this into my local branch for some testing over the > weekend. > -- > Jeff Layton >