Messages in this thread | | | Subject | Re: [PATCH v2] wait while adding MMC host to ensure root mounts | From | Sergey Yanovich <> | Date | Sat, 13 Apr 2013 16:52:28 +0400 |
| |
On Sat, 2013-04-13 at 13:56 +0200, Ulf Hansson wrote: > > Den 13 apr 2013 12:49 skrev "Sergey Yanovich" <ynvich@gmail.com>: > > A possible solution is to make card a separate device (now only the > host > > is a device). In this case, the probing could be done asynchronously > > without breaking the assumption in prepare_namespace(). > > Actually the card is already a separate device, which I connected to > the mmc bus.
Great. I failed to see that.
> It is an interesting idea, but the problem is that the card device is > only created and added on the fly when a card has been properly > detected.
If we include 'detecting' in 'probing' and then do 'probing' asynchronously, we will neither have race condition, nor boot time regression.
| |