Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753518Ab3DMMwg (ORCPT ); Sat, 13 Apr 2013 08:52:36 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:56617 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753142Ab3DMMwd (ORCPT ); Sat, 13 Apr 2013 08:52:33 -0400 Message-ID: <1365857548.9806.64.camel@host5.omatika.ru> Subject: Re: [PATCH v2] wait while adding MMC host to ensure root mounts From: Sergey Yanovich To: Ulf Hansson Cc: Greg Kroah-Hartman , Namjae Jeon , Jaehoon Chung , Linus Walleij , Chris Ball , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 13 Apr 2013 16:52:28 +0400 In-Reply-To: References: <1363223183-3772-1-git-send-email-ynvich@gmail.com> <1363224194-7366-1-git-send-email-ynvich@gmail.com> <87620jmkoe.fsf@octavius.laptop.org> <87ppylf429.fsf@octavius.laptop.org> <1365850153.9806.59.camel@host5.omatika.ru> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 26 On Sat, 2013-04-13 at 13:56 +0200, Ulf Hansson wrote: > > Den 13 apr 2013 12:49 skrev "Sergey Yanovich" : > > 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/