Commit 34948a94 authored by Benjamin Poirier's avatar Benjamin Poirier Committed by Jeff Kirsher

ixgbe: add missing rtnl_lock in PM resume path

Upon resume from standby, ixgbe may trigger the ASSERT_RTNL() in
netif_set_real_num_tx_queues(). The call stack is:
	netif_set_real_num_tx_queues
	ixgbe_set_num_queues
	ixgbe_init_interrupt_scheme
	ixgbe_resume
Signed-off-by: default avatarBenjamin Poirier <bpoirier@suse.de>
Tested-by: default avatarStephen Ko <stephen.s.ko@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent a99ff7d0
...@@ -4836,7 +4836,9 @@ static int ixgbe_resume(struct pci_dev *pdev) ...@@ -4836,7 +4836,9 @@ static int ixgbe_resume(struct pci_dev *pdev)
pci_wake_from_d3(pdev, false); pci_wake_from_d3(pdev, false);
rtnl_lock();
err = ixgbe_init_interrupt_scheme(adapter); err = ixgbe_init_interrupt_scheme(adapter);
rtnl_unlock();
if (err) { if (err) {
e_dev_err("Cannot initialize interrupts for device\n"); e_dev_err("Cannot initialize interrupts for device\n");
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment