> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of 
> [email protected]
> Sent: Tuesday, August 4, 2026 11:52 PM
> To: [email protected]; [email protected]
> Cc: [email protected]; Nguyen, Anthony L 
> <[email protected]>; Kitszel, Przemyslaw 
> <[email protected]>; [email protected]; [email protected]; 
> [email protected]; [email protected]; [email protected]; 
> [email protected]; Kwapulinski, Piotr <[email protected]>; 
> Kubalewski, Arkadiusz <[email protected]>; Loktionov, Aleksandr 
> <[email protected]>; [email protected]; Xuanqiang Luo 
> <[email protected]>
> Subject: [Intel-wired-lan] [PATCH iwl-net v2 3/5] i40e: synchronize reset 
> recovery with device removal
> 
> From: Xuanqiang Luo <[email protected]>
> 
> i40e_remove() currently tears down PTP and device resources before claiming 
> RESET_RECOVERY_PENDING. A service task can pass its initial state check 
> before removal starts and continue into reset recovery after the remove path 
> has begun teardown. This can make i40e_reset_and_rebuild() access or recreate 
> resources that are being released.
> 
> Stop the service timer and disable the service work before claiming reset 
> ownership. disable_work_sync() drains the current service task and rejects 
> later queue_work() attempts, including those from interrupts. Claim the reset 
> bit before starting teardown so an existing reset owner completes first.
> 
> Fixes: 6533e558c650 ("i40e: Fix reset path while removing the driver")
> Signed-off-by: Xuanqiang Luo <[email protected]>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 28 ++++++++++-----------
>  1 file changed, 14 insertions(+), 14 deletions(-)

Tested-by: Alexander Nowlin <[email protected]>

Reply via email to