[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1255026025.26976.333.camel@twins>
Date: Thu, 08 Oct 2009 20:20:25 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Alexander Strakh <strakh@...ras.ru>
Cc: Pierre Ossman <pierre@...man.eu>, sdhci-devel@...ts.ossman.eu,
Linux Kernlel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [BUG] wbsd.c: after spin_lock_bh uses spin_unlock instead
spin_unlock_bh
On Thu, 2009-10-08 at 15:18 +0000, Alexander Strakh wrote:
> KERNEL_VERSION: 2.6.31
> DESCRIBE:
> Driver ./drivers/mmc/host/wbsd.c calls spin_lock_bh and then spin_unlock
> instead of spin_unlock_bh:
>
> 753 static void wbsd_request(struct mmc_host *mmc, struct mmc_request *mrq)
> ....
> 761 spin_lock_bh(&host->lock);
> ....
> 844 done:
> 845 wbsd_request_end(host, mrq);
> 846
> 847 spin_unlock_bh(&host->lock);
> 848 }
>
> But in wsdb_request calls spin_unlock/spin_lock instead of
> spin_unlock_bh/spin_lock_bh;
>
> 206 static void wbsd_request_end(struct wbsd_host *host, struct mmc_request
> ....
> 230 spin_unlock(&host->lock);
> 231 mmc_request_done(host->mmc, mrq);
> 232 spin_lock(&host->lock);
> 233 }
Doesn't look too odd, it simply leaves BH disabled, but unlocks the
spinlock.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists