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

Commit d2b46f66 authored by Pierre Ossman's avatar Pierre Ossman
Browse files

mmc: allow suspended block driver to be removed



Make sure we don't deadlock when removing a suspended block
queue, something that might happen if the card is removed during
suspend.

Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 3b91e550
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -191,6 +191,9 @@ void mmc_cleanup_queue(struct mmc_queue *mq)
	q->queuedata = NULL;
	spin_unlock_irqrestore(q->queue_lock, flags);

	/* Make sure the queue isn't suspended, as that will deadlock */
	mmc_queue_resume(mq);

	/* Then terminate our worker thread */
	kthread_stop(mq->thread);