Message ID | 20211029194113.293031-2-huobean@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Clean UFS HPB 2.0 | expand |
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index d91a405fd181..a11248d89a7e 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -2740,12 +2740,11 @@ static int ufshcd_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd) lrbp->req_abort_skip = false; - err = ufshpb_prep(hba, lrbp); - if (err == -EAGAIN) { - lrbp->cmd = NULL; - ufshcd_release(hba); - goto out; - } + /* + * Ignore the UHPPB preparation result and continue with the original + * request if preperation fails. + */ + ufshpb_prep(hba, lrbp); ufshcd_comp_scsi_upiu(hba, lrbp);