]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: fix permanent sleep of mmcqd during card removal
authorSeungwon Jeon <tgih.jun@samsung.com>
Tue, 22 Jan 2013 10:48:03 +0000 (19:48 +0900)
committerChris Ball <cjb@laptop.org>
Sun, 24 Feb 2013 19:37:12 +0000 (14:37 -0500)
commit44f4848b8a7c3afacf74bed24e203af64ac8a99e
tree5139cdb5e0b816e12bfa3c0c649d8bf09ed21e36
parent61a1fe06d9522ce79532433052c8d6ca9749f8b6
mmc: core: fix permanent sleep of mmcqd during card removal

This patch is derived from:
"mmc: fix async request mechanism for sequential read scenarios".

According as async transfer, a request is handled with twice mmc_start_req.
When the card is removed, the request is actually not issued in the first
mmc_start_req [__mmc_start_data_req]. And then mmc_wait_for_data_req_done
will come in the next mmc_start_req. But there is no event for completions.
wake_up_interruptible is needed in __mmc_start_data_req for the case of
removed card.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Tested-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c