summaryrefslogtreecommitdiff
path: root/include/linux/dma-iommu.h
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@163.com>2017-06-15 02:35:31 +0300
committerDavid S. Miller <davem@davemloft.net>2017-06-15 06:45:22 +0300
commit640f93cc6ea7327588be3cc0849d1342aac0393a (patch)
tree3136ed9256db392079abe637e3a386cb103c5933 /include/linux/dma-iommu.h
parent849a44de91636c24cea799cb8ad8c36433feb913 (diff)
downloadlinux-640f93cc6ea7327588be3cc0849d1342aac0393a.tar.xz
i40e: Fix a sleep-in-atomic bug
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 sleep To fixed it, the spin lock is released before "i40e_vsi_remove_pvid", and the lock is acquired again after this function. Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/dma-iommu.h')
0 files changed, 0 insertions, 0 deletions