From: Sujit Reddy Thumma Date: Wed, 23 Nov 2011 03:13:18 +0000 (+0530) Subject: mmc: core: Fix deadlock when the CONFIG_MMC_UNSAFE_RESUME is not defined X-Git-Tag: v3.2-rc6~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49df78074963c97e25debc3c67b72f059111607d;p=pandora-kernel.git mmc: core: Fix deadlock when the CONFIG_MMC_UNSAFE_RESUME is not defined mmc_suspend_host() tries to claim host during suspend and release it only when the bus suspend operation is compeleted. If CONFIG_MMC_UNSAFE_RESUME is defined and the host is flagged as removable, mmc_suspend_host() tries to remove the card. In this process, the file system sync can get blocked trying to acquire host which is already claimed by mmc_suspend_host() causing deadlock. Fix this deadlock by releasing host before ->remove() is called. Signed-off-by: Sujit Reddy Thumma Acked-by: Ulf Hansson Acked-by: Linus Walleij Signed-off-by: Chris Ball --- Reading git-diff-tree failed