diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-06-20 04:20:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-20 04:20:30 -0400 |
commit | 83b462c656813e002843ddb061c8cc99149cab14 (patch) | |
tree | 6d07d4a97408ca01aabedc28ce448b6254040faf /drivers/net/qla3xxx.c | |
parent | c3da63f35773b04e885c5659e560d5c521d2682e (diff) |
Net: qla3xxx, remove sleeping in atomic
We cannot sleep in ql_reset_work under spinlock, unlock before sleep,
relock after.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qla3xxx.c')
-rw-r--r-- | drivers/net/qla3xxx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index 8a823ecc99a9..bbc6d4d3cc94 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c | |||
@@ -3837,7 +3837,9 @@ static void ql_reset_work(struct work_struct *work) | |||
3837 | 16) | ISP_CONTROL_RI)); | 3837 | 16) | ISP_CONTROL_RI)); |
3838 | } | 3838 | } |
3839 | 3839 | ||
3840 | spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); | ||
3840 | ssleep(1); | 3841 | ssleep(1); |
3842 | spin_lock_irqsave(&qdev->hw_lock, hw_flags); | ||
3841 | } while (--max_wait_time); | 3843 | } while (--max_wait_time); |
3842 | spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); | 3844 | spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); |
3843 | 3845 | ||