We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406e148 commit 339e3ebCopy full SHA for 339e3eb
drivers/mmc/core/queue.c
@@ -493,6 +493,13 @@ void mmc_cleanup_queue(struct mmc_queue *mq)
493
if (blk_queue_quiesced(q))
494
blk_mq_unquiesce_queue(q);
495
496
+ /*
497
+ * If the recovery completes the last (and only remaining) request in
498
+ * the queue, and the card has been removed, we could end up here with
499
+ * the recovery not quite finished yet, so cancel it.
500
+ */
501
+ cancel_work_sync(&mq->recovery_work);
502
+
503
blk_mq_free_tag_set(&mq->tag_set);
504
505
/*
0 commit comments