Re: [PATCH net v5 1/4] ice: stop the service task before the PF is unloaded
From: Petr Oros
Date: Mon Nov 30 2026 - 08:20:38 EST
On Sat, 28 Nov 2026 09:30:06 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> - [High] The patch moves the early ice_service_task_stop() only in
> ice_remove().
Right, ice_devlink_reinit_down() and the error path of ice_probe() also
tear the PF down before their only stop. Both did so before commit
8a37f9e2ff40 ("ice: move ice_deinit_dev() to the end of deinit paths"),
the reinit since commit
41cc4e53934c ("ice: Remove and readd netdev during devlink reload").
This patch only puts the stop back where ice_remove() had it, and the
v6 message says so.
> - [High] The patch handles the "last run re-arms the service timer after
> the stop, and the timer fires after the PF is freed" race only in the…
Right, a path that stops only once can still be left with an armed
timer, and those paths are older too. In ice_remove() the stop in
ice_deinit_dev() deletes it. With the 12 s test delay from the commit
message the E810-C without this patch faulted in call_timer_fn() after
rmmod, and with it rmmod took 12.0 s and KASAN reported nothing.
> - [Medium] The early ice_service_task_stop() in ice_remove()
> (ice_main.c:5390) does not stop the service work from being queued…
Right, and that window is as old as ICE_SERVICE_DIS, commit 8d81fa55bac0
("ice: Introduce SERVICE_DIS flag and service routine functions").
Before commit 8a37f9e2ff40 ice_remove() stopped at the same place with
the same window. It is not changed here.