mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 12:46:17 +00:00
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>
This commit is contained in:
parent
c3da63f357
commit
83b462c656
1 changed files with 2 additions and 0 deletions
|
@ -3837,7 +3837,9 @@ static void ql_reset_work(struct work_struct *work)
|
||||||
16) | ISP_CONTROL_RI));
|
16) | ISP_CONTROL_RI));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);
|
||||||
ssleep(1);
|
ssleep(1);
|
||||||
|
spin_lock_irqsave(&qdev->hw_lock, hw_flags);
|
||||||
} while (--max_wait_time);
|
} while (--max_wait_time);
|
||||||
spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);
|
spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue