]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: remove flush_scheduled_work call in i40evf_remove
authorSudheer Mogilappagari <sudheer.mogilappagari@intel.com>
Mon, 18 Dec 2017 10:16:23 +0000 (05:16 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 23 Jan 2018 19:29:19 +0000 (11:29 -0800)
commitb2e6a9e9cae80d1521248d146061808a3555fd27
tree7d4b7010033cd335e83b278efc03102419cec072
parent91a83626c651104aa98ba13a92dc52f5d9a2d340
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 <sudheer.mogilappagari@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c