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

Commit 20457b9f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: queue: Don't peek requests when queue is stopped"

parents 805da2e1 7cfc8552
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -58,8 +58,10 @@ static int mmc_prep_request(struct request_queue *q, struct request *req)
static struct request *mmc_peek_request(struct mmc_queue *mq)
{
	struct request_queue *q = mq->queue;
	mq->cmdq_req_peeked = NULL;

	spin_lock_irq(q->queue_lock);
	if (!blk_queue_stopped(q))
		mq->cmdq_req_peeked = blk_peek_request(q);
	spin_unlock_irq(q->queue_lock);