fm10k: prevent RCU issues during AER events
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 11 Mar 2016 17:52:32 +0000 (09:52 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 21 Apr 2016 06:06:21 +0000 (23:06 -0700)
commit1e4c32f3ede19bdb738aec2cc3cf69439d7b9310
treeea43c37c01a3d62f9dde6c528db410d5323aa8e9
parent2d0f76bedbddaacc465c7a3ebdc9f8c13f68d931
fm10k: prevent RCU issues during AER events

During an AER action response, we were calling fm10k_close without
holding the rtnl_lock() which could lead to possible RCU warnings being
produced due to 64bit stat updates among other causes. Similarly, we
need rtnl_lock() around fm10k_open during fm10k_io_resume. Follow the
same pattern elsewhere in the driver and protect the entire open/close
sequence.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c