|
@@ -2151,6 +2151,7 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
|
|
|
struct mmc_card *card = md->queue.card;
|
|
|
struct mmc_host *host = card->host;
|
|
|
unsigned long flags;
|
|
|
+ bool req_is_special = mmc_req_is_special(req);
|
|
|
|
|
|
if (req && !mq->mqrq_prev->req)
|
|
|
/* claim host only for the first request */
|
|
@@ -2191,8 +2192,7 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
|
|
|
}
|
|
|
|
|
|
out:
|
|
|
- if ((!req && !(mq->flags & MMC_QUEUE_NEW_REQUEST)) ||
|
|
|
- mmc_req_is_special(req))
|
|
|
+ if ((!req && !(mq->flags & MMC_QUEUE_NEW_REQUEST)) || req_is_special)
|
|
|
/*
|
|
|
* Release host when there are no more requests
|
|
|
* and after special request(discard, flush) is done.
|