From: Jiri Slaby Date: Sat, 20 Jun 2009 08:20:30 +0000 (-0700) Subject: Net: qla3xxx, remove sleeping in atomic X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=83b462c656813e002843ddb061c8cc99149cab14;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index 8a823ecc99a..bbc6d4d3cc9 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c @@ -3837,7 +3837,9 @@ static void ql_reset_work(struct work_struct *work) 16) | ISP_CONTROL_RI)); } + spin_unlock_irqrestore(&qdev->hw_lock, hw_flags); ssleep(1); + spin_lock_irqsave(&qdev->hw_lock, hw_flags); } while (--max_wait_time); spin_unlock_irqrestore(&qdev->hw_lock, hw_flags);