]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
i40evf: release bit locks in reverse order
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 27 Oct 2017 15:06:51 +0000 (11:06 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 10 Jan 2018 20:41:21 +0000 (12:41 -0800)
Although not strictly necessary, it is customary to reverse the order in
which we release locks that we acquire. This helps preserve lock
ordering during future refactors, which can help avoid potential
deadlock situations.

Signed-off-by: Jacob Keller <jacob.e.keller@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

index e15ec95260a193346c0c43ec9496bae7651d1eab..85e2232af750cb6e4b2b1fa3bcd5ccb81985f087 100644 (file)
@@ -1960,8 +1960,8 @@ continue_reset:
 
        adapter->aq_required |= I40EVF_FLAG_AQ_ADD_MAC_FILTER;
        adapter->aq_required |= I40EVF_FLAG_AQ_ADD_VLAN_FILTER;
-       clear_bit(__I40EVF_IN_CRITICAL_TASK, &adapter->crit_section);
        clear_bit(__I40EVF_IN_CLIENT_TASK, &adapter->crit_section);
+       clear_bit(__I40EVF_IN_CRITICAL_TASK, &adapter->crit_section);
        i40evf_misc_irq_enable(adapter);
 
        mod_timer(&adapter->watchdog_timer, jiffies + 2);