Commit:     cf795bfb3ad4e2f8f6bb346aa8edb8272d4c70a2
Parent:     67a61c484735de9bf4f099830ecb4ef2eca95c38
Author:     Pierre Ossman <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 11 20:28:02 2007 +0200
Committer:  Pierre Ossman <[EMAIL PROTECTED]>
CommitDate: Thu Jul 26 01:53:48 2007 +0200

    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 <[EMAIL PROTECTED]>
 drivers/mmc/core/core.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index e08aa35..3208890 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -260,6 +260,8 @@ void mmc_claim_host(struct mmc_host *host)
        DECLARE_WAITQUEUE(wait, current);
        unsigned long flags;
+       might_sleep();
        add_wait_queue(&host->wq, &wait);
        spin_lock_irqsave(&host->lock, flags);
        while (1) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to