@@ -107,7 +107,7 @@ static enum blk_eh_timer_return mmc_cqe_timed_out(struct request *req)
case MMC_ISSUE_DCMD:
if (host->cqe_ops->cqe_timeout(host, mrq, &recovery_needed)) {
if (recovery_needed)
- __mmc_cqe_recovery_notifier(mq);
+ mmc_cqe_recovery_notifier(mrq);
return BLK_EH_RESET_TIMER;
}
/* No timeout (XXX: huh? comment doesn't make much sense) */
@@ -131,12 +131,13 @@ static enum blk_eh_timer_return mmc_mq_timed_out(struct request *req,
spin_lock_irqsave(&mq->lock, flags);
- if (mq->recovery_needed || !mq->use_cqe || host->hsq_enabled)
+ if (mq->recovery_needed || !mq->use_cqe || host->hsq_enabled) {
ret = BLK_EH_RESET_TIMER;
- else
+ spin_unlock_irqrestore(&mq->lock, flags);
+ } else {
+ spin_unlock_irqrestore(&mq->lock, flags);
ret = mmc_cqe_timed_out(req);
-
- spin_unlock_irqrestore(&mq->lock, flags);
+ }
return ret;
}