RE: [PATCH] MMC: fix a race between card-detect rescan and clock-gate work instances

2011-05-11 Thread Guennadi Liakhovetski
Hi On Wed, 11 May 2011, Dong, Chuanxiao wrote: > Hello Liakhovetski, > > Right now I am facing some problem during kernel booting which indicate > caused by MMC driver. So I think I encountered the race condition you > mentioned below. Which kernel are you using? With my patch or without it?

RE: [PATCH] MMC: fix a race between card-detect rescan and clock-gate work instances

2011-05-11 Thread Dong, Chuanxiao
> -Original Message- > From: Guennadi Liakhovetski [mailto:g.liakhovet...@gmx.de] > Sent: Wednesday, May 11, 2011 8:26 PM > To: Dong, Chuanxiao > Cc: linux-mmc@vger.kernel.org > Subject: RE: [PATCH] MMC: fix a race between card-detect rescan and clock-gate > work inst

RE: [PATCH] MMC: fix a race between card-detect rescan and clock-gate work instances

2011-05-11 Thread Guennadi Liakhovetski
On Wed, 11 May 2011, Dong, Chuanxiao wrote: > > > -Original Message- > > From: Guennadi Liakhovetski [mailto:g.liakhovet...@gmx.de] > > Sent: Wednesday, May 11, 2011 8:26 PM > > To: Dong, Chuanxiao > > Cc: linux-mmc@vger.kernel.org > > Subject: R

RE: [PATCH] MMC: fix a race between card-detect rescan and clock-gate work instances

2011-05-11 Thread Dong, Chuanxiao
Hello Liakhovetski, Right now I am facing some problem during kernel booting which indicate caused by MMC driver. So I think I encountered the race condition you mentioned below. I have gone through MMC stack code, seems sdhci_set_ios already wrapped by spin lock/unlock, so I am a little not und

Re: [PATCH] MMC: fix a race between card-detect rescan and clock-gate work instances

2011-04-18 Thread Chris Ball
Hi Guennadi, On Fri, Apr 15 2011, Guennadi Liakhovetski wrote: > Currently there is a race in the MMC core between a card-detect > rescan work and the clock-gating work, scheduled from a command > completion. Fix it by removing the dedicated clock-gating mutex and > using the MMC standard locking

Re: [PATCH] MMC: fix a race between card-detect rescan and clock-gate work instances

2011-04-18 Thread Linus Walleij
2011/4/15 Guennadi Liakhovetski : > Currently there is a race in the MMC core between a card-detect > rescan work and the clock-gating work, scheduled from a command > completion. Fix it by removing the dedicated clock-gating mutex and > using the MMC standard locking mechanism instead. Acked-by:

Re: [PATCH] MMC: fix a race between card-detect rescan and clock-gate work instances

2011-04-15 Thread Andrei Warkentin
On Fri, Apr 15, 2011 at 1:08 PM, Guennadi Liakhovetski wrote: > Currently there is a race in the MMC core between a card-detect > rescan work and the clock-gating work, scheduled from a command > completion. Fix it by removing the dedicated clock-gating mutex and > using the MMC standard locking m