mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
mmc: block: blk-mq: Add support for direct completion
For blk-mq, add support for completing requests directly in the ->done callback. That means that error handling and urgent background operations must be handled by recovery_work in that case. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8ee82bda23
commit
10f21df4a2
6 changed files with 116 additions and 26 deletions
|
@ -165,7 +165,10 @@ static void mmc_mq_recovery_handler(struct work_struct *work)
|
|||
|
||||
mq->in_recovery = true;
|
||||
|
||||
mmc_blk_cqe_recovery(mq);
|
||||
if (mq->use_cqe)
|
||||
mmc_blk_cqe_recovery(mq);
|
||||
else
|
||||
mmc_blk_mq_recovery(mq);
|
||||
|
||||
mq->in_recovery = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue