Re: [Intel-wired-lan] [PATCH net] iavf: fix deadlock in reset handling

From: Jacob Keller

Date: Mon Feb 02 2026 - 20:00:45 EST




On 2/2/2026 3:58 PM, Jakub Kicinski wrote:
On Mon, 2 Feb 2026 09:48:20 +0100 Petr Oros wrote:
+ netdev_unlock(netdev);
+ ret = wait_event_interruptible_timeout(adapter->reset_waitqueue,
+ !iavf_is_reset_in_progress(adapter),
+ msecs_to_jiffies(5000));
+ netdev_lock(netdev);

Dropping locks taken by the core around the driver callback
is obviously unacceptable. SMH.

Right. It seems like the correct fix is to either a) have reset take and hold the netdev lock (now that its distinct from the global RTNL lock) or b) refactor reset so that it can defer any of the netdev related stuff somehow.