mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
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: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
parent
3b91e5507c
commit
d2b46f66b4
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue