🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10369

Re: [PATCH net v5 4/4] netconsole: stop waiting for carrier once the device is unregistered

#10369
From: Breno Leitao
Date: Tue, 03 Nov 2026 12:28
13 lines
9228 bytes
On Mon, Nov 02, 2026 at 07:54:52PM +0000, Gustavo Luiz Duarte wrote:
> netcons_netpoll_setup() releases RTNL and waits in netcons_wait_carrier()
> for up to carrier_timeout seconds for the device to report carrier. If
> the device is unregistered in the meantime, the loop keeps polling until
> the timeout expires.
> 
> Stop waiting as soon as the device is no longer NETREG_REGISTERED.
> 
> Closes: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261021-netcons-fixes-v4-0-3857120c6340@gmail.com
> Signed-off-by: Gustavo Luiz Duarte <gustavold@gmail.com>

Reviewed-by: Breno Leitao <leitao@debian.org>
Technical Details
Message-ID: <aunTfNV9n8_eaato@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355570-linux-kernel-netdev=dewy.ru
References: <20261102-netcons-fixes-v5-0-bdada2f03563@gmail.com> <20261102-netcons-fixes-v5-4-bdada2f03563@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355570-linux-kernel-netdev=dewy.ru
From: leitao@debian.org (Breno Leitao)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5 4/4] netconsole: stop waiting for carrier once the
 device is unregistered
Date: Tue, 3 Nov 2026 04:28:57 -0800
Organization: Usenet Network
Message-ID: <aunTfNV9n8_eaato@gmail.com>
References: <20261102-netcons-fixes-v5-0-bdada2f03563@gmail.com>
 <20261102-netcons-fixes-v5-4-bdada2f03563@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3171948"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:TRubRKsNSYfZI+ZN3oYuQ++tzts= sha256:QI8qRu1fVOjJ/PGxN3DScg8FoOGZjNrEZf98ibTx23Y=
	sha1:5PGsd20D00mqkekGkaW3LqcO4t8= sha256:BFItC4BMOx0+LPzu7CLMpkn0w12/3wALj0Czx9IoJ9g=
Content-Disposition: inline
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 C4A0511289C; Tue,  3 Nov 2026 16:21:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.052
X-Spam-Status: No, score=-3.052 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,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=debian.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 LxHSylQAy7ms;
	Tue,  3 Nov 2026 16:21:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-355570-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=debian.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 3BB26112836; Tue,  3 Nov 2026 16:21:09 +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 037043EDFA; Tue,  3 Nov 2026 12:29:23 +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=1793708959;
	b=qlERz6cStontdWpwokQM+mhnFyD3deJC4hPuC+8prIyuxahTs91yeiTNa6JUQy5lHc0F
	 4u/UG/wnKscjeLZiIqbMbcfjiAkMtOLPIOpBJ9vrYagiWkkOzcgn0pRNPub9Yati9R1yg
	 TEeHFNpEpRTvjwLOVzaGjJTHYN4yngEcGVAC9V33GTmdF3NZPvOZpvO5ueurq7vdSHj5v
	 spO61548gO981Z5N5tWfszJoqG7synjmkPsR31A8F30GyhRnfwjgJJ9NY1EMpQJeG3lAM
	 jS/Slf6260Rwa8QZsR1KNWZGpVpnQDVDYsWZ72RM4Gf0Fj5+POB23DyLJZNQk7jIomw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793708959;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:
	 X-Debian-User;
	bh=dXVOtNhsvETk1ahsPbFZ/MoyUGdtPmlljazR6U0smHQ=;
	b=E0FABKz7DMV2XET8BqO1P8Y837miCfwdmnOFPxAbGIq1iUEa+ysTHvlX2gz39iGEYw1f
	 rrJ9vSLfLesS4r8WNDqjYswFi4TJO6mdrt9mBDm0dIlWfOit+3uc4wXNMxM3VmZ0Z3pD3
	 PZRe5zJ/MQ+K+R98fC4aF82TCEOjnrz7CgTdhddWXiCh6o1EzthlyH+46Ihkdp2Hl6G1h
	 v6Y38B3ViJ9qsOcmEBJJWy8Vss8T8gXqLrG/n2GxFvSWTM/iOIIn7jOrUc+y5Ox3Rw7kn
	 KRZPXNANezrXqVH/V382xZObsm2JOVr2i8tsiEbIh7ALALhQNwPm7xZ10c6+1tED88A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=G8FbTDdI;
	dmarc=pass header.from=debian.org;
	spf=pass smtp.mailfrom=debian.org;
	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 7A263606A32D;
	Tue,  3 Nov 2026 12:29:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=G8FbTDdI
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=82.195.75.108
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793708949;
	b=K6yRpBgsrqM4+bx7dNybtAA4V1CQ++DV9J3yKq8w9GFymhtvUNaprE2kCmeXP7EalKbU
	 JSQcaIDhCdIhLNIND1HybLnpOZnqdzO/HextlNocl64s86Sj3/1ffrodODbYQmkeY+sHE
	 DUu2huEuEx6a6AyBX3pFXaZZCZBDQm3z1MlVSeqGv7ezKuWBjVKllaXAWcxCVkwpmEg7S
	 d84ODEhCskByJPuWzUzkXWdLazSSmfznsP4tAYSQegVxuLzmq02Ufr/xIr9Y43SSNSI8R
	 CEgDewZtqdJOrgJ+IVJjCg6mR6mra/PnYnXOxdhmyOjagMxl1FvbWAsorstJBpWchvw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793708949;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To:X-Debian-User;
	bh=dXVOtNhsvETk1ahsPbFZ/MoyUGdtPmlljazR6U0smHQ=;
	b=dR0c9gDKXi7S/TPaOcJXnaOFw3rlRMGZxuLrwJmUVfJumm0wH4HH/t3xrIgxzVMjzG6u
	 wkZzJaAeZmP2wqbiJYPY8XZPWO/wWDsEzLDkUSetyxFU2yrNc2o0B/qWWT81sb0gtuSV2
	 AOGc5DJU6ZhHKNj5hHZsalCgQxzyX8FJBXjJuejK5r79olHklvxDUZ+OmoJgNnIpHcu0J
	 lcodrJzzjToJChD1Z+k4UBxFLQ/cmRRUZIMqKKplPqnIrG1hFtpEnSSqX3nja6bfafz4S
	 +/KbN4EOvAv8Evs2Vz1uW9T8gI3WNeQTeDbhmY5aiFpWKF6szNKgUk16sAf4+5BK18A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=debian.org;
	spf=pass smtp.mailfrom=debian.org;
	dkim=pass header.d=debian.org header.i=@debian.org header.a=rsa-sha256 header.s=smtpauto.stravinsky header.b=G8FbTDdI;
	arc=none smtp.remote-ip=82.195.75.108
X-Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD21F606A327;
	Tue,  3 Nov 2026 12:29:08 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DD21F606A327
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=debian.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=debian.org
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:Reply-To:
	Content-Transfer-Encoding:Content-ID:Content-Description;
	bh=dXVOtNhsvETk1ahsPbFZ/MoyUGdtPmlljazR6U0smHQ=; b=G8FbTDdIdsWdmXJ01ozv5hG06Y
	18tBkgYaIAwqj3XncFOHtbfyNV8W/nRIfmi2VnPtjMwAFuwYV0CH75MSYQpcJMCwzGDLAjWI/JmXa
	poVqs5D3yTb7VC/wav2qLKwk4etL9W5u0mstnb/DTt0fwYDRowaOa26u8Bz8LKHPAhTfImOLNBolS
	xHg9nEHfl9EU7sR0mVW6p4cDtvFHrd6RGLDwdBd0vwBkKRjT6SS9lvRIflCPj6At08lS8BbCZzy4C
	dNboULkGOqXHO+gjW3iX53rNjrqgooJEpMk5GarVLTin+neTKxO/9mXGxnRfAm56atoJCLuA9rSJW
	NQRvAAeQ==;
X-Received: from authenticated-user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <leitao@debian.org>)
	id 1xODdN-006vuv-0e;
	Tue, 03 Nov 2026 12:29:02 +0000
X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, 
	"David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, 
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, 
	Stephen Hemminger <stephen@networkplumber.org>, netdev@vger.kernel.org, linux-kernel@vger.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
X-In-Reply-To: <20261102-netcons-fixes-v5-4-bdada2f03563@gmail.com>
X-Debian-User: leitao