diff options
| author | Emil Tantilov <emil.s.tantilov@intel.com> | 2016-11-11 21:12:51 +0300 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-01-04 00:03:36 +0300 |
| commit | 2dad7b2775ea030c898fe4946971edd25af237d1 (patch) | |
| tree | 2e2ea994214472e794f2d1e3d17c9d6b9a609ec0 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | f7f37e7ff2b9b7eff7fbd035569cab35896869a3 (diff) | |
| download | linux-2dad7b2775ea030c898fe4946971edd25af237d1.tar.xz | |
ixgbevf: handle race between close and suspend on shutdown
When an interface is part of a namespace it is possible that
ixgbevf_close() may be called while ixgbevf_suspend() is running
which ends up in a double free WARN and/or a BUG in free_msi_irqs()
To handle this situation we extend the rtnl_lock() to protect the
call to netif_device_detach() and check for !netif_device_present()
to avoid entering close while in suspend.
Also added rtnl locks to ixgbevf_queue_reset_subtask().
CC: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
