> -----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 4/5] i40e: replace reset polling 
> with wait-bit synchronization
> 
> From: Xuanqiang Luo <[email protected]>
> 
> i40e_remove() polls on RESET_RECOVERY_PENDING with a fixed sleep while 
> waiting for an existing reset owner. This adds teardown latency and does not 
> provide a wait queue for the reset owner to wake.
> 
> Use wait_on_bit_lock() so removal sleeps until the reset owner releases the 
> bit and then atomically claims it. Pair the reset release paths with
> clear_and_wake_up_bit() to provide the required release and wakeup semantics.
> 
> Fixes: 5b6d4a7f20b0 ("i40e: Fix crash during removing i40e driver")
> Signed-off-by: Xuanqiang Luo <[email protected]>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

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

Reply via email to