Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83b462c6 authored by Jiri Slaby's avatar Jiri Slaby Committed by David S. Miller
Browse files

Net: qla3xxx, remove sleeping in atomic



We cannot sleep in ql_reset_work under spinlock, unlock before sleep,
relock after.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c3da63f3
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -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);