🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14078

Re: [PATCH] SUNRPC: Load the GSS module by OID only when the mechanism is missing

#14078
From: Chuck Lever
Date: Tue, 10 Nov 2026 17:42
23 lines
8689 bytes
On Mon, 09 Nov 2026 22:09:47 -0500, Sasha Levin wrote:
> gss_mech_get_by_OID() calls request_module() before it looks at the
> list of registered mechanisms, so every lookup forks a modprobe, even
> when the mechanism is already registered or built in.
> gss_mech_get_by_name() and gss_mech_get_by_pseudoflavor() only load
> the module when the lookup fails.
> 
> The read handler of /proc/net/rpc/gss_krb5_enctypes uses this lookup,
> so every read() of that file runs modprobe, two per cat. The file is
> present in every /proc/<pid>/net/rpc and /proc/<pid>/task/<tid>/net/rpc
> directory, and LTP read_all gives each read one second. On a slow board
> in KernelCI its workers stall on this file and the test times out.
> 
> [...]

Applied to nfsd-testing, thanks!

[1/1] SUNRPC: Load the GSS module by OID only when the mechanism is missing
      commit: f7ef2ce48812080b87572a2f0fdec93cb2d2a629

--
Chuck Lever <cel@kernel.org>
Technical Details
Message-ID: <179433250776.39465.13251097480716731768.b4-ty@b4>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360476-linux-kernel-netdev=dewy.ru
References: <20261110030947.179738-1-sashal@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360476-linux-kernel-netdev=dewy.ru
From: cel@kernel.org (Chuck Lever)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] SUNRPC: Load the GSS module by OID only when the mechanism is missing
Date: Tue, 10 Nov 2026 12:42:29 -0500
Organization: Usenet Network
Message-ID: <179433250776.39465.13251097480716731768.b4-ty@b4>
References: <20261110030947.179738-1-sashal@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="664346"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pfgvxDC6fizVSZzQUWiZAiuHpb0= sha256:HBp8qQNv2AaPkI9aj4mkVPLuzmIXmPvGjteVePEnZVc=
	sha1:IAtgj/EkSkH2EENrE8pBp7OzskM= sha256:9iJWnoZNwM/A5lZpipjSK5Ak6EuomimdHdzvhN4ixA0=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 6C8BB113C8F; Tue, 10 Nov 2026 20:48:09 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id fd3kouEu8H1w;
	Tue, 10 Nov 2026 20:48:06 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-360476-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id C9E81113C8C; Tue, 10 Nov 2026 20:47:58 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 1B969615E69; Tue, 10 Nov 2026 17:43:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794332555;
	b=4w1Z1Mhrg3Z3lbYpFs/T1XchYjddKWgzRSRrvmO9073oded0P7IZcXsPPgrymHst6+Mw
	 I4XIMJbHN+ETaFxqmX7PMRWXETV7x8mK8i4kFLWfOMhWSOmVpLda+GvCGomZSbaLg6JZ/
	 Ctf8v/l7seDmjEKYTO1/su8+XM7kD8z1066ZSwiP/vQwd63PASf50ErHc/FOQEYgbocHx
	 SfGToeecBjwHOKI5tliS0DHkC0U+mVl6m2nzsdMOJ0uLdmtr66dutV78ZS9YXpQ4ggR8z
	 t8skhKY4TuwyFpNED1Ha39JV/PDQFRxA8figEb5lqjSgYkwZ4SCoetN5sLjS8icJ9yQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794332555;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:
	 List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
	 List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=jbgSuxD4CgBXy0cbPyYVRCuYyNpAOZN/+jBRNG++0S4=;
	b=BWH6meo0x4oGwJ1QcJCMUxhxEbe0eGbx6FAjhzYUHSEs2o9OoFpkpZQdziGFyfX/FAgZ
	 IijlL1T3Kv7qfqw7zQC0greTRk4pZq8GJHe8ToLHRlF6X61mCJSL+/QTuI100O8rFhoZo
	 YmL5hdB+gpMFM9mWdqgy0QJPK4Uk5lcDGXSMyBNa6up242EtBrtFa1h2fWVP+QKzVKwlC
	 PMiG6TaG27pP7xbnKHamzdcVZPIeBP/PI3kZ2Vd8+/e3ILbI8159mZdJoWDR4IeHnOhsO
	 ChMSiQAh1nmolctICYP5lr1FmATz0Hng+4O1IoepLvQ9TFZA/isUkozlDtFh8ic8VQw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NhTxZB6I;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C390A606A339;
	Tue, 10 Nov 2026 17:42:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NhTxZB6I
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794332555;
	b=0epUUxDuNDYD3aBgHUZJk5d+AOFLmiy12xZaOGrIPdeTqSCJDxussOCPoOwD+4H/m6Zn
	 s+FW4G/KK1qmXKpuxfU28kyT37YIJ1G8LXOobTQNFgMFBA3xLr1irUATpfQzOTl7Sewix
	 6/dqpAb0uXnB2aL0MlwDLKGBo2pOSCz61/eBwsP8SJyZE9QbQXoDjbSee5w17LojG2h56
	 kjcqxzkfneAx0Z+oAoUzz0vlLcgd2DcsExd2JPytXLKCIeykT9UIhTYwuAZRQ9E1ESZLx
	 3EpMKFV00UeQyeaNRMKrkJpImoGAGdDHJ1p8BqfWc3ZksLeME0Sp5zu9/D/py1S6Ieg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794332555;
	h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=jbgSuxD4CgBXy0cbPyYVRCuYyNpAOZN/+jBRNG++0S4=;
	b=sZfg4UEi1/3OTL8fWaf6ppXDNmo8wjIw9A2XmornjQYbU4Iu9p096iDYp1tSswHNDaGv
	 yRGYgcSBImBhWveB7KUKEDKeW1K4BTau5xeIr/Eb4Ax77nypvbN/YHfFiTyzcjKe9oQO3
	 JVEpNQCNiAWd/lbI38GLDYTwq6i60nmO+vEHPXnMQfxdi8++Q7hz3XwvE/MWNEqntg5oH
	 w07LYB4opBfKyiTXCaskWBr5/GcSl6RBLxBQANNKxEQW0NNfLSpoPn2I4oY4Ye7TRe7fC
	 /lgtSl6VZ0L6wX/tHMAEyb8zadhSbQS22GBbpZHvxuOhTI3z2Cy3fSgyJXqawr2aX5Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NhTxZB6I;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABC0160A380D;
	Tue, 10 Nov 2026 17:42:34 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44CB61F008BC;
	Tue, 10 Nov 2026 17:42:33 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794332554;
	bh=jbgSuxD4CgBXy0cbPyYVRCuYyNpAOZN/+jBRNG++0S4=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References;
	b=NhTxZB6IUedUgovEJg9k6mNFtic5HShCTAb6tXk4BdWSsCiIN1b6LDe6G1FFY5Fxd
	 CUS74SGGPpbCakr6xBU0nermj8YvhF1OdK6PrY4t+ZYwfySr/dktF8GC+xvIV+ae1I
	 ZdkVQgIeMT09omFxbgO44Yv4EE24Pq1ADmYYT8r5invSLkATq0ms1UCUhBRk/68XWW
	 rqC0UK552RYWxSvGpy25Gy8CihoB/taDsFkBXlTI7WfxksrtnbY7Jg0LnepX3josy2
	 QesjmYIF+h4Zs5Xhjxo8OC5zvRvrhNEhLPR8H9IL4UDnLusWa/KCkxh4a7GOcy8rlc
	 nrkLfAjHSwzcg==
X-Cc: NeilBrown <neil@brown.name>,
	Olga Kornievskaia <okorniev@redhat.com>,
	Dai Ngo <Dai.Ngo@oracle.com>,
	Tom Talpey <tom@talpey.com>,
	linux-nfs@vger.kernel.org,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"kernelci.org bot" <bot@kernelci.org>
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <20261110030947.179738-1-sashal@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list