Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp237330rdb; Thu, 16 Nov 2023 18:22:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF306oKs7g3Rpui8BCn0qcUvby3AYrii4ib7/xLluBL+RPFj1PeGTCt7OalVGJRurwspDBw X-Received: by 2002:a05:6a21:9997:b0:187:afb0:c2ed with SMTP id ve23-20020a056a21999700b00187afb0c2edmr4869688pzb.13.1700187747161; Thu, 16 Nov 2023 18:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700187747; cv=none; d=google.com; s=arc-20160816; b=Cvo9VO9ArJ7ZQeUlXui/mjDZpoJNEGUzcpJl+K3Zjg3UiG2IQIQLjn3ZGZCGWPYtfS IOrK/vHznP+MvdZpxODL/4fXXRwSgKE+M32m01GIPfXbADn2Q6E8X/WegRDgQDxFT+m0 Jed0r9tJHlbCtqJTO0k3M+pEPsdzcBax2ZKbh/08dKPCysGvrzZEUn4c5DOlgn55UGbb nCIAHitEXPNLpGP08QaEyTTbMhzuvLWiim5/hebtHZ5fn/okVclygMrwx4vwNXAeE+QX W8lhhsHjx8oiwrQPw+fXXVnzpAsbDNCIlcRyD+k7ibDnYLB7TD6c1mVugxeSgWVQsl8p PJxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=OsAzFz+9EsCU+/oYO79MjfVBgs8YcJ7Jwn1THYhlST0=; fh=oGCWKUgN5rqvEqhxhGaFnCKhx0upqxg87fHnuYmJPFg=; b=Ss15FO5jqLTRJVsSir1Okctd19Xr80uvZ8nX7d5ukHlB1QGmXSw9L8MTxuyJKvn6i7 bVvlToB7u9jIW34UEfIK2B81RPk6IlRYiLuTkbR65rGRg/TM9iFgGBz0AxZnIwDKliQy W2d+GxghO5nMl7FRD59W/MXBH6+5Vr/ODTHQj0gmIk66kqBXraHbWLYDxbSvWSnp7D+U FkwwcMpplImvAt6AckGy6ABstelamNlO39iNlcAd/rTo1hjiU6x3MOgd6rlV2XW1qUKh 8LWTwnHct/8G2ixNa98hnfc3DtHnAzOHvrqreSq+LNnVPw+TtpepA5k5QOGV7Ry5XaiP wUrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qE8ejEhs; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a19-20020a17090ad81300b002800c14f2e1si3321658pjv.89.2023.11.16.18.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 18:22:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qE8ejEhs; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 0E738821A17D; Thu, 16 Nov 2023 18:22:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjKQCVl (ORCPT + 99 others); Thu, 16 Nov 2023 21:21:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKQCVl (ORCPT ); Thu, 16 Nov 2023 21:21:41 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E47511A7 for ; Thu, 16 Nov 2023 18:21:37 -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 956181F8C2; Fri, 17 Nov 2023 02:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1700187696; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OsAzFz+9EsCU+/oYO79MjfVBgs8YcJ7Jwn1THYhlST0=; b=qE8ejEhsLtKxAYdNGDNt4dc0bKR+vYrT61zekF3M+/AVv/4jI4Sb+yfgOQdXeD5FJvPEGv qpTpitlSDUiiuyg6qL+4SnchTVS68huQbjZevKJ6oMnC2ywyW2waFnF9zt11HDXpFJ+0Fs y2o/QDTRktLfn5lScH/lTW5QA9/2FzU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1700187696; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OsAzFz+9EsCU+/oYO79MjfVBgs8YcJ7Jwn1THYhlST0=; b=zY9/tODxbMCu8FrAItczC92wx11jHe/aDZ7fYjbQXWIOjLC2WL2A8kaEIp8gz3IEF2N+fb w236jyQRO1skyjAA== 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 8CC221341F; Fri, 17 Nov 2023 02:21:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id l5gbES7OVmUREwAAMHmgww (envelope-from ); Fri, 17 Nov 2023 02:21:34 +0000 From: NeilBrown To: Chuck Lever , Jeff Layton Cc: linux-nfs@vger.kernel.org, Olga Kornievskaia , Dai Ngo , Tom Talpey Subject: [PATCH 0/9 v3] support admin-revocation of v4 state Date: Fri, 17 Nov 2023 13:18:46 +1100 Message-ID: <20231117022121.23310-1-neilb@suse.de> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out2.suse.de; none X-Spam-Score: 3.62 X-Spamd-Result: default: False [3.62 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; RCPT_COUNT_FIVE(0.00)[6]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MID_CONTAINS_FROM(1.00)[]; 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.08)[63.23%] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 18:22:26 -0800 (PST) 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