mmc: add a might_sleep() to mmc_claim_host()
authorPierre Ossman <drzeus@drzeus.cx>
Wed, 11 Jul 2007 18:28:02 +0000 (20:28 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Wed, 25 Jul 2007 23:53:48 +0000 (01:53 +0200)
commitcf795bfb3ad4e2f8f6bb346aa8edb8272d4c70a2
treeccba2e6023d9f6da894d68ac21a06188e79495d6
parent67a61c484735de9bf4f099830ecb4ef2eca95c38
mmc: add a might_sleep() to mmc_claim_host()

In the normal case, the host lock can be claimed directly.
When it cannot, the caller will sleep. Make sure we don't
have any latent bugs by always calling might_sleep().

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/core.c