[Intel-wired-lan] [PATCH iwl-net v2 4/5] i40e: replace reset polling with wait-bit synchronization

Nowlin, Alexander alexander.nowlin at intel.com
Wed Sep 30 01:17:24 UTC 2026


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of xuanqiang.luo at linux.dev
> Sent: Tuesday, August 4, 2026 11:52 PM
> To: intel-wired-lan at lists.osuosl.org; horms at kernel.org
> Cc: vadim.fedorenko at linux.dev; Nguyen, Anthony L <anthony.l.nguyen at intel.com>; Kitszel, Przemyslaw <przemyslaw.kitszel at intel.com>; andrew+netdev at lunn.ch; davem at davemloft.net; edumazet at google.com; kuba at kernel.org; pabeni at redhat.com; richardcochran at gmail.com; Kwapulinski, Piotr <piotr.kwapulinski at intel.com>; Kubalewski, Arkadiusz <arkadiusz.kubalewski at intel.com>; Loktionov, Aleksandr <aleksandr.loktionov at intel.com>; netdev at vger.kernel.org; Xuanqiang Luo <luoxuanqiang at kylinos.cn>
> Subject: [Intel-wired-lan] [PATCH iwl-net v2 4/5] i40e: replace reset polling with wait-bit synchronization
> 
> From: Xuanqiang Luo <luoxuanqiang at kylinos.cn>
> 
> 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 <luoxuanqiang at kylinos.cn>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Tested-by: Alexander Nowlin <alexander.nowlin at intel.com>


More information about the Intel-wired-lan mailing list