Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp717825rdb; Thu, 18 Jan 2024 17:43:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdxGep3BTiV+ez6dHV7wWEk7CCxGOPhJk7Ik1av+4vf0p3dgHR8eE89tZdf2Y1Me3sw7eE X-Received: by 2002:a05:6359:6d04:b0:170:17eb:7c5d with SMTP id te4-20020a0563596d0400b0017017eb7c5dmr1637437rwb.48.1705628638939; Thu, 18 Jan 2024 17:43:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705628638; cv=pass; d=google.com; s=arc-20160816; b=NdwQ8CWDqDXdUN9AVsleH1vo6qlkwR9uR86IvMwfrIpKjuYxP5mswA//2wIyVwm8mS +SVoe6P+6zH5M+WTe6UCYEpgk1HgUaC7JBydytWKNB7HQVY3b8rySG3jEodriGsVGjFA 7w3GhbUlMzDM1YfZvrhgMszpr76tZr8jGxCKfMOR9wOOwPcCqhda7toinYZKJrHcykIy iC6nyPTo41e0R/OD2EevvKSs6seeyl+mV0VmA/xKXAoXUGMKym2Yc7lnZodXwe4N/6wV Q5evQe20Uz0txVZkKtqhWArhlg2NYtOiM+dSocSM1v499cNrHRzpsOyG63T1IVyZKMIg I26A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:references:in-reply-to:subject:cc:to:from :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=RTpY+lhlCgXFvedNpNFzFiuSb5SeoI30lkEuaTDtJcg=; fh=3cVUqrBlCYKHDH/sVHASgoDP1h1US1q68V5dOsonqkA=; b=Ku+cSucRuGcdZSCf3IKRiTc5vJh6h2OYCzKct40IA3dRBeMJEXfUT8omk7mMVIyBVm uvOyu5ATvK0p3IXUk6MyJMTbTkGzU1LKWElA6fdO71uGfeJC9M7u1az9dMv8HvLn51Of q8lqvbnVfO059l5q5SehROOhoV7li98RkuyXyFRqMlIoExKA0u7/DpCRo9KqyAlePgT7 056N+zwGDGr5ea/61Myx6xQg3TBi1sUXdIWbE4SsUnArBBlC2GcOnfBYUVLkSWDL0LUX 65+jjD/gSYqtvBoJzsRqRsOgc6svJs1B/vdJ+uQTkaev6B5kyQHSYfilt8SwjWTjJ+uF 6ZBA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QZx52EeU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QZx52EeU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=4JHj4o9N; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-nfs+bounces-1204-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r3-20020a63d903000000b005cdfad07a46si2391207pgg.66.2024.01.18.17.43.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 17:43:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1204-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QZx52EeU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QZx52EeU; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=4JHj4o9N; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-nfs+bounces-1204-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5D16D2841C5 for ; Fri, 19 Jan 2024 01:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5B743C28; Fri, 19 Jan 2024 01:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="QZx52EeU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="4JHj4o9N"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="QZx52EeU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="4JHj4o9N" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F97F3C0A for ; Fri, 19 Jan 2024 01:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705628636; cv=none; b=Tdid/sEKjIisMKgyHEhFDgqI/dkzPwCRSAXA/SHV/qObqM9sGx6iuCUSttPL2iGwt17KOz9fW4HdghvJ0rLc7p0Fp4LdZDlps5cj7v2kUkWdNn5uH48Hc49P5oFjKNohwjN/KLKmCFkqQbVDvCi6BR8mpp9kp1NOihMbbNFihzo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705628636; c=relaxed/simple; bh=vFA94ZkARncC92IsI0gJKCCAOQfKaZcCiTrHUAzivWo=; h=Content-Type:MIME-Version:From:To:Cc:Subject:In-reply-to: References:Date:Message-id; b=AQgoEiiTqrq4v51vC2TW4V6rsb08oQrg7SNOSm0d4KNs+DxGciLXRDuGVjIIco5/Ar0YbrjwrZSk3X8YANWAVDZ0gJsp7f2+U1W+MNpqwmV/DYiet5rogbtnVmX2iB6d/EQbTp1A1ak0pIgdGzFjpgzEdaRPmyj5ogBANZeOTOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=QZx52EeU; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=4JHj4o9N; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=QZx52EeU; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=4JHj4o9N; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6B31F21FBF; Fri, 19 Jan 2024 01:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705628633; 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=RTpY+lhlCgXFvedNpNFzFiuSb5SeoI30lkEuaTDtJcg=; b=QZx52EeUyANE6yPxwVxPuSHB27vkNCMPE5jPRvXnkkEIegULkua8F0R31KW7gp8W8IK+uQ VoOGZGajFJs2xLPui5O/6uvGRyZCn+Hth/HlypM31EWDudQsqANrNIbAq8+02f3fPvM/NX 2T6ryEi2qWAzD0QTc14UEAIQgRreUjs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705628633; 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=RTpY+lhlCgXFvedNpNFzFiuSb5SeoI30lkEuaTDtJcg=; b=4JHj4o9NVZavE51iygo6QkNXq7zqIrnMJ8F9Ld2fyES638K+ZEUu72ijsFVX3Ki9fFLxY6 OP2h8NrdrlkOBnCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705628633; 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=RTpY+lhlCgXFvedNpNFzFiuSb5SeoI30lkEuaTDtJcg=; b=QZx52EeUyANE6yPxwVxPuSHB27vkNCMPE5jPRvXnkkEIegULkua8F0R31KW7gp8W8IK+uQ VoOGZGajFJs2xLPui5O/6uvGRyZCn+Hth/HlypM31EWDudQsqANrNIbAq8+02f3fPvM/NX 2T6ryEi2qWAzD0QTc14UEAIQgRreUjs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705628633; 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=RTpY+lhlCgXFvedNpNFzFiuSb5SeoI30lkEuaTDtJcg=; b=4JHj4o9NVZavE51iygo6QkNXq7zqIrnMJ8F9Ld2fyES638K+ZEUu72ijsFVX3Ki9fFLxY6 OP2h8NrdrlkOBnCA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4AF9613777; Fri, 19 Jan 2024 01:43:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id TkQjANfTqWWcWwAAD6G6ig (envelope-from ); Fri, 19 Jan 2024 01:43:50 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever" Cc: "Jeff Layton" , linux-nfs@vger.kernel.org, "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" Subject: Re: [PATCH 07/11] nfsd: allow admin-revoked NFSv4.0 state to be freed. In-reply-to: References: <20231124002925.1816-1-neilb@suse.de>, <20231124002925.1816-8-neilb@suse.de>, Date: Fri, 19 Jan 2024 12:43:48 +1100 Message-id: <170562862834.23031.8326629221834970585@noble.neil.brown.name> Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -1.30 X-Spamd-Result: default: False [-1.30 / 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_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-0.991]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[42.51%] X-Spam-Flag: NO On Mon, 27 Nov 2023, Chuck Lever wrote: > > +static void nfsd_drop_revoked_stid(struct nfs4_stid *s) > > +{ > > + struct nfs4_client *cl = s->sc_client; > > + > > + switch (s->sc_type) { > > + default: > > + spin_unlock(&cl->cl_lock); > > + } > > +} > > I'm not in love with unlocking cl_lock inside nfsd_drop_revoked_stid, > but I understand why it's necessary. How about: > > static void nfsd4_drop_revoked_stid_unlock(struct nfs4_client *cl, > struct nfs4_stid *s) > __releases(&cl->cl_lock) > { > .... > I made it __releases(&s->sc_client->cl_lock) thanks. NeilBrown