Re: [net] i40e: Fix a sleep-in-atomic bug

2017-06-14 Thread David Miller
From: Jeff Kirsher Date: Wed, 14 Jun 2017 16:35:31 -0700 > From: Jia-Ju Bai > > The driver may sleep under a spin lock, and the function call path is: > i40e_ndo_set_vf_port_vlan (acquire the lock by spin_lock_bh) > i40e_vsi_remove_pvid > i40e_vlan_stripping_disable > i40e_aq_update

[net] i40e: Fix a sleep-in-atomic bug

2017-06-14 Thread Jeff Kirsher
From: Jia-Ju Bai The driver may sleep under a spin lock, and the function call path is: i40e_ndo_set_vf_port_vlan (acquire the lock by spin_lock_bh) i40e_vsi_remove_pvid i40e_vlan_stripping_disable i40e_aq_update_vsi_params i40e_asq_send_command mutex_lock --> may sl