diff options
author | 2017-06-01 16:18:10 +0800 | |
---|---|---|
committer | 2017-06-01 11:42:19 -0400 | |
commit | 5ea6d691aac6c93b790f0905e3460d44cc4c449b (patch) | |
tree | c90e6d72606ae7d1777cd0ea1018ad46c072679a /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mpls: fix clearing of dead nh_flags on link up (diff) | |
download | wireguard-linux-5ea6d691aac6c93b790f0905e3460d44cc4c449b.tar.xz wireguard-linux-5ea6d691aac6c93b790f0905e3460d44cc4c449b.zip |
qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M
The driver may sleep under a write spin lock, and the function
call path is:
qlcnic_82xx_hw_write_wx_2M (acquire the lock by write_lock_irqsave)
crb_win_lock
qlcnic_pcie_sem_lock
usleep_range
qlcnic_82xx_hw_read_wx_2M (acquire the lock by write_lock_irqsave)
crb_win_lock
qlcnic_pcie_sem_lock
usleep_range
To fix it, the usleep_range is replaced with udelay.
Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions