Re: [PATCH net v5 4/4] netconsole: stop waiting for carrier once the device is unregistered
From: Breno Leitao
Date: Tue Nov 03 2026 - 10:22:53 EST
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@xxxxxxxxx
> Signed-off-by: Gustavo Luiz Duarte <gustavold@xxxxxxxxx>
Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>