diff options
| author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-11 15:26:03 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-11 15:26:03 -0500 |
| commit | 69de7fc037c8cda6fd20a632d39461bf9d42b927 (patch) | |
| tree | 096e704e8f97079ec5c1edd9d1d99b01cddc920e /drivers/mmc/mmc_queue.c | |
| parent | 116140b7f5c9182c86a4e419f81684209357aea7 (diff) | |
| parent | 99eeb8dfb1ce3df744e2e0d00dd627d7a8199ef0 (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drzeus/mmc:
AT91 MMC update for 2.6.19
mmc: Change SDHCI iomem error to a warning
mmc: fix "prev->state: 2 != TASK_RUNNING??" problem on SD/MMC card removal
AT91 MMC 5 : Minor cleanups
AT91 MMC 4 : Interrupt handler cleanup
AT91 MMC 3 : Move global mci_clk variable
AT91 MMC 2 : Use platform resources
AT91 MMC 1: Pass host structure.
Diffstat (limited to 'drivers/mmc/mmc_queue.c')
| -rw-r--r-- | drivers/mmc/mmc_queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/mmc_queue.c b/drivers/mmc/mmc_queue.c index a17423a4ed8f..3e35a43819fb 100644 --- a/drivers/mmc/mmc_queue.c +++ b/drivers/mmc/mmc_queue.c | |||
| @@ -78,8 +78,10 @@ static int mmc_queue_thread(void *d) | |||
| 78 | spin_unlock_irq(q->queue_lock); | 78 | spin_unlock_irq(q->queue_lock); |
| 79 | 79 | ||
| 80 | if (!req) { | 80 | if (!req) { |
| 81 | if (kthread_should_stop()) | 81 | if (kthread_should_stop()) { |
| 82 | set_current_state(TASK_RUNNING); | ||
| 82 | break; | 83 | break; |
| 84 | } | ||
| 83 | up(&mq->thread_sem); | 85 | up(&mq->thread_sem); |
| 84 | schedule(); | 86 | schedule(); |
| 85 | down(&mq->thread_sem); | 87 | down(&mq->thread_sem); |
