πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16119

Re: [PATCH net 14/15] ipvs: wait grace period before reusing destinations

#16119
From: netdev-bot+sashiko
Date: Sat, 14 Nov 2026 02:15
60 lines
10411 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit message for "ipvs: wait grace period before reusing
  destinations" describes the change against an earlier revision of the…

--

ipvs: wait grace period before reusing destinations

This patch adds a conditional RCU grace-period wait in ip_vs_add_dest()
right after a destination is taken from dest_trash, before its estimator
is restarted. Trash insertions are batched so that one rcu_state cookie
covers each removal. A need_gp flag makes ip_vs_rs_hash() wait before it
rehashes a destination that was unhashed during an edit.

> When a destination is retrieved from dest_trash, ip_vs_add_dest() currently
> restarts its estimator before waiting for the grace period.

[ ... ]

> ip_vs_start_estimator() rewrites the node on its temporary list on success,
> or initializes it on failure, before the current wait. A reader can then
> follow the changed link or stop traversing the chain early.

[Severity: Low]
Does this wording describe the change against an earlier revision of the
patch rather than the tree it applies to?

In the parent tree, the trash-reuse path in ip_vs_add_dest() has no
grace-period wait. ip_vs_trash_get_dest() is followed directly by
ip_vs_start_estimator() and __ip_vs_update_dest(). There is also no
rcu_state, need_gp or cond_synchronize_rcu() anywhere under
net/netfilter/ipvs/ in the parent tree.

So "currently restarts its estimator before waiting" and "before the
current wait" point to a wait that does not exist in the baseline. The
patch adds the wait rather than moving it.

> The grace-period cookie is also saved when a live destination is unhashed
> for an edit and consumed when it is rehashed. Describe rcu_state as the
> cookie for an unlink, covering both trash and rehash cases.

The sentence "Describe rcu_state as the cookie for an unlink" reads like a
note between patch versions about rewording the comment on the new
struct ip_vs_dest::rcu_state field. It does not describe a change against
the baseline.

The patch is tagged for stable. Could the message say plainly that before
this patch n_list, d_list and est->list were reused with no grace period?
It could then say that the patch adds cond_synchronize_rcu() right after
the dest is taken from the trash, and a need_gp wait in ip_vs_rs_hash()
for the edit/rehash case.

-- 
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261113011447.2357709-2-pablo%40netfilter.org
Technical Details
Message-ID: <179462254924.2199510.13893062636821703551@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363040-linux-kernel-netdev=dewy.ru
References: <20261113011447.2357709-15-pablo@netfilter.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363040-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 14/15] ipvs: wait grace period before reusing destinations
Date: Sat, 14 Nov 2026 02:15:49 +0000
Organization: Usenet Network
Message-ID: <179462254924.2199510.13893062636821703551@kernel.org>
References: <20261113011447.2357709-15-pablo@netfilter.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1490275"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ogdFhDalXkxWJiiaenoc8EnCnrs= sha256:SrJvB22+h1lvupzsK1IDa7VBCmJqKaGmVFi1lGDxJJA=
	sha1:eqXZITWFfJFRqR6BWu7cZZK24yo= sha256:MMngOHJ8daq1GqMh83OvQJVoriMaD5AyrSl1gBo5luk=
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 6C54EC99D6; Sat, 14 Nov 2026 05:16:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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, URIBL_BLOCKED=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 vQxqLOPy7Sd9;
	Sat, 14 Nov 2026 05:16:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-363040-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 70380116024; Sat, 14 Nov 2026 05:16:23 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 5CF8540A91; Sat, 14 Nov 2026 02:16: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=1794622556;
	b=rMGGdU7yiCDOsQSQt8pg3SuCnjrKFrpkygC4kpOvr2zktaOBNDMnHeN1JfLdeBpxqfYs
	 TILDB6cdGiGasM5CvKjmHfWPUPlorHVzM5DE4jq3oKhkokIm8veJgTbkFwGKk+Ri8hsuF
	 Y7w0hHYnQs/LdYm0mCR6D5vyR2cq263UYn/W6DBzDecmX9mWNrNTvg3i13v2pVsDF9+08
	 sumVLawyQCzGu6xNxpWQBKQSHAVIjPWI3Ew8ZZHM07+tvYD+cR2iDj1tHEr4cziO56WP/
	 0tG6bgqU9pnnjkztqJ/wiDZSbkWcMGNIB9iPyc62G4AnPnnE2TMyyQ2/kEVqWuSYN1w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794622556;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=UhKg19WmHWcCDhoq+fCZ7tMD7STH5vjOVAh4jEFeDvU=;
	b=iL3RoTOw/L11CK1WwB3aVE2Q+H1yz0aqRJIZydWNYHajmetVs9+pvanYp+TKkPVgTIAm
	 +d2fk/cA7TJ0vwqdQQUPjoNy4/5RA2zEmNlAo0kEsbkauS0zYiGm93z97/u0Zcv5b96lc
	 2AOoH/VMqfs4jpNhWZZM8i/HvH5DsX1en3yD2wrKcWiqRxfRa/6pDHAfcCUuN1hCnVZkz
	 wZWCulmIbc5RwJbc8+JlX8kdMrsi+eQUYKFJJtfnwjIF7XNMMZtTJcfdN+9IuueuO78U7
	 G9qANCUsekAyX+h0jjT4NvvF9H4af/t7zJQrbow321bE0n3YTvQ4WmG4Hj1NEZVTl1g==
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=QNKpNm+m;
	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 438D0606A329;
	Sat, 14 Nov 2026 02:15:56 +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=QNKpNm+m
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=1794622550;
	b=coofF7YrxDOv7Bns8z2q5Xzbi9adoajLtxuGq5TmcA6r/2cczn+D1z65e1gHGb/iumoW
	 HN4A2flwa3i77NYi8eJdqTqPe2eOBJFEAvg3erVGMQI1e0rAcPv3Usm0gJjD95wYFM+9R
	 cLvpFnVV94c0Cs4SY5xGLQuGXIrfuJrZqxVvlCi/53BQSIT+LdqD4Gb08klp6DnXrwWLT
	 RnrvsAtIAhFv6moW/eJrEIXMWYTSsXbgtiIEaxxuiQpbo1sIdG+UCOAGLfi4odTITfc6s
	 BOw0OX9m+kTytRWMMPDcH50eqQnl/+QbGlOT9YIqcChPHpRjhEq7ZwBdg1M2etuYhHw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794622550;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=UhKg19WmHWcCDhoq+fCZ7tMD7STH5vjOVAh4jEFeDvU=;
	b=UZusJHEfjVwUi7wFmHGDfjlg4r7hUj4hgbp8ewJih+Abg+5I7MEHYZoOMsZfiP3mn4K9
	 zpPvQ0kNuHp6KGN8NnmA6tIycIz6X7nUQdZ68slVP+U2oHnjxBjbUZHPr2oCPmb64oMVn
	 HiKNvgwMeZdLguaRz7h1bYa4unw/0EIkKd29ESA+NXWhgH00nQsvb2YZNOfANvkDwOYHY
	 A0xOyBQlGnrt+H9oEZwWLCD/aL1HUMsuCtyyDcGlnO5X6yMwnspGBEmLbhv7IYO8i0/Cl
	 f1ILY8sc21Ug2WRWl18jGeTx4v08rQpvsBC5JNLFlQCMz0P2jh3sqPbxujF7HmoBBuA==
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=QNKpNm+m;
	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 6220460A2609;
	Sat, 14 Nov 2026 02:15:50 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id A40D11F000C6;
	Sat, 14 Nov 2026 02:15:49 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794622550;
	bh=UhKg19WmHWcCDhoq+fCZ7tMD7STH5vjOVAh4jEFeDvU=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=QNKpNm+m3TTK/R7vy68UN0TlnYlYIjfkJ7gAD5WE2MS7oighyPLX80tzC9Awrn2Cs
	 VBZD0bTwH7VaRILLMlg37aIYj4Cy+C8uE0Vhi7PdZuQfmKwiTkk4idRIzM8hWCCd57
	 3Q1g/QXOyFTTdBagdZSCDOUkkFr7zCI2XXsHgNBQCwnwG5jDh53n1BMyrpD8q7a1Uj
	 +oQ3G0Qjen3/zaMsi7X4oKA1kFaT/FnVxQxJnULFhmsbeHmegsM0DgDNd15msYDmzD
	 0eqsy+t408wzHWghsguRhyG9r2YKc6o7yOp9l+TlCC/UN7KyBitg4vihWlnpfMaalu
	 ChyOG5/aEqD4A==
X-Cc: netfilter-devel@vger.kernel.org, davem@davemloft.net,
 netdev@vger.kernel.org, kuba@kernel.org, pabeni@redhat.com,
 edumazet@kernel.org, horms@kernel.org, fw@strlen.de, ja@ssi.bg
X-In-Reply-To: <20261113011447.2357709-15-pablo@netfilter.org>
X-sashiko-severity: Low
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