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

Commit 9fdd8ec8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: fix broken hba->outstanding_tasks"

parents f5b0a62a 55c264b9
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -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);