FAILED: patch "[PATCH] mmc: block: Fix is_waiting_last_req set incorrectly" failed to apply to 4.10-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 4.10-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
2602b740e45cc64feb55d5a9ee8db744ab3becbbMon Sep 17 00:00:00 2001
From: Adrian Hunter <[email protected]>
Date: Mon, 13 Mar 2017 14:36:32 +0200
Subject: [PATCH] mmc: block: Fix is_waiting_last_req set incorrectly
Commit 15520111500c ("mmc: core: Further fix thread wake-up") allowed a queue to release the host with is_waiting_last_req set to true. A queue waiting to claim the host will not reset it, which can result in the queue getting stuck in a loop.
drivers/mmc/core/block.c +1 -0
@@ -1817,6 +1817,7 @@ void mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)mmc_blk_issue_flush (mq, req); }else {mmc_blk_issue_rw_rq (mq, req); + card->host->context_info.is_waiting_last_req = false; } out: