]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitce098753ebd77e91176c3560b1a268e86d34441d
treeea43c37c01a3d62f9dde6c528db410d5323aa8e9
parent041651fb357b6b9eae267b339dc980823d38f5e7
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