Merge "scsi: ufs: fix sleep in atomic context"
This commit is contained in:
commit
0f04e7c48a
1 changed files with 3 additions and 0 deletions
|
@ -5780,10 +5780,13 @@ static void ufshcd_err_handler(struct work_struct *work)
|
||||||
dev_err(hba->dev, "%s: saved_err 0x%x saved_uic_err 0x%x",
|
dev_err(hba->dev, "%s: saved_err 0x%x saved_uic_err 0x%x",
|
||||||
__func__, hba->saved_err, hba->saved_uic_err);
|
__func__, hba->saved_err, hba->saved_uic_err);
|
||||||
if (!hba->silence_err_logs) {
|
if (!hba->silence_err_logs) {
|
||||||
|
/* release lock as print host regs sleeps */
|
||||||
|
spin_unlock_irqrestore(hba->host->host_lock, flags);
|
||||||
ufshcd_print_host_regs(hba);
|
ufshcd_print_host_regs(hba);
|
||||||
ufshcd_print_host_state(hba);
|
ufshcd_print_host_state(hba);
|
||||||
ufshcd_print_pwr_info(hba);
|
ufshcd_print_pwr_info(hba);
|
||||||
ufshcd_print_tmrs(hba, hba->outstanding_tasks);
|
ufshcd_print_tmrs(hba, hba->outstanding_tasks);
|
||||||
|
spin_lock_irqsave(hba->host->host_lock, flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue