mmc: msm_sdcc: Fix possible circular locking dependency warning
authorSahitya Tummala <stummala@codeaurora.org>
Wed, 8 Dec 2010 09:33:03 +0000 (15:03 +0530)
committerDavid Brown <davidb@codeaurora.org>
Mon, 20 Dec 2010 20:28:30 +0000 (12:28 -0800)
commit62612cf9d97068dc75b48a7a3044ee907a3283ec
treed72ec00cc807f67c284babf83e6b738d125ed0af
parent50bc0ef42c76879f5d68a88c7063603dc0c9789b
mmc: msm_sdcc: Fix possible circular locking dependency warning

In the context of request processing thread, data mover lock is
acquired after the host lock.  In another context, in the completion
handler of data mover the locks are acquired in the reverse order,
resulting in possible circular lock dependency warning. Hence,
schedule a tasklet to process the dma completion so as to avoid
nested locks.

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
drivers/mmc/host/msm_sdcc.c
drivers/mmc/host/msm_sdcc.h