Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1655272
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M |
| Date | 2017-06-01 17:50 +0200 |
| Message-ID | <tNAwj-4oP-57@gated-at.bofh.it> (permalink) |
| References | <tNtuN-61-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Jia-Ju Bai <baijiaju1990@163.com> Date: Thu, 1 Jun 2017 16:18:10 +0800 > 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> Applied.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M Jia-Ju Bai <baijiaju1990@163.com> - 2017-06-01 10:20 +0200 Re: [PATCH] qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M David Miller <davem@davemloft.net> - 2017-06-01 17:50 +0200
csiph-web