Skip to content

Commit a558566

Browse files
msudheer337Jeff Kirsher
authored andcommitted
i40evf: remove flush_scheduled_work call in i40evf_remove
flush_schedule_work blocks until completion of all scheduled work items in global work-queue. This can cause deadlock in some cases. i40evf_remove() cleans up necessary work items with cancel_delayed_work_sync and cancel_work_sync. This fix removes flush_schedule_work call inside i40evf_remove(). Signed-off-by: Sudheer Mogilappagari <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent b356dac commit a558566

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/intel/i40evf/i40evf_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3088,8 +3088,6 @@ static void i40evf_remove(struct pci_dev *pdev)
30883088
if (adapter->watchdog_timer.function)
30893089
del_timer_sync(&adapter->watchdog_timer);
30903090

3091-
flush_scheduled_work();
3092-
30933091
i40evf_free_rss(adapter);
30943092

30953093
if (hw->aq.asq.count)

0 commit comments

Comments
 (0)