Loading drivers/scsi/ufs/ufshcd.c +3 −0 Original line number Original line Diff line number Diff line Loading @@ -7845,6 +7845,9 @@ static int ufshcd_issue_tm_cmd(struct ufs_hba *hba, int lun_id, int task_id, if (ufshcd_clear_tm_cmd(hba, free_slot)) if (ufshcd_clear_tm_cmd(hba, free_slot)) dev_WARN(hba->dev, "%s: unable clear tm cmd (slot %d) after timeout\n", dev_WARN(hba->dev, "%s: unable clear tm cmd (slot %d) after timeout\n", __func__, free_slot); __func__, free_slot); spin_lock_irqsave(host->host_lock, flags); __clear_bit(free_slot, &hba->outstanding_tasks); spin_unlock_irqrestore(host->host_lock, flags); err = -ETIMEDOUT; err = -ETIMEDOUT; } else { } else { err = ufshcd_task_req_compl(hba, free_slot, tm_response); err = ufshcd_task_req_compl(hba, free_slot, tm_response); Loading Loading
drivers/scsi/ufs/ufshcd.c +3 −0 Original line number Original line Diff line number Diff line Loading @@ -7845,6 +7845,9 @@ static int ufshcd_issue_tm_cmd(struct ufs_hba *hba, int lun_id, int task_id, if (ufshcd_clear_tm_cmd(hba, free_slot)) if (ufshcd_clear_tm_cmd(hba, free_slot)) dev_WARN(hba->dev, "%s: unable clear tm cmd (slot %d) after timeout\n", dev_WARN(hba->dev, "%s: unable clear tm cmd (slot %d) after timeout\n", __func__, free_slot); __func__, free_slot); spin_lock_irqsave(host->host_lock, flags); __clear_bit(free_slot, &hba->outstanding_tasks); spin_unlock_irqrestore(host->host_lock, flags); err = -ETIMEDOUT; err = -ETIMEDOUT; } else { } else { err = ufshcd_task_req_compl(hba, free_slot, tm_response); err = ufshcd_task_req_compl(hba, free_slot, tm_response); Loading