Merge "scsi: ufs: fix sleep in atomic context"

This commit is contained in:
Linux Build Service Account 2016-11-18 01:54:41 -08:00 committed by Gerrit - the friendly Code Review server
commit 0f04e7c48a

View file

@ -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",
__func__, hba->saved_err, hba->saved_uic_err);
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_state(hba);
ufshcd_print_pwr_info(hba);
ufshcd_print_tmrs(hba, hba->outstanding_tasks);
spin_lock_irqsave(hba->host->host_lock, flags);
}
}