Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759326AbZC3TIb (ORCPT ); Mon, 30 Mar 2009 15:08:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759136AbZC3TIM (ORCPT ); Mon, 30 Mar 2009 15:08:12 -0400 Received: from wa-out-1112.google.com ([209.85.146.179]:12903 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756346AbZC3TIJ convert rfc822-to-8bit (ORCPT ); Mon, 30 Mar 2009 15:08:09 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=mEJlTrRh1XeDki29shkqn23PbepNS0AMUjMhmWWJhaAVL+6nfNJhsOoT3puI9Dhc0j fWKQmtZt0nKbJCTjyTfDR+26Es8seJRbJQTXdTtSs3QWmqbr87Uj6aFBi9E4bOEdHbyZ s3taQi6xXHm/o4TXnB2zuo0HTKvWdfHGpZxKA= MIME-Version: 1.0 In-Reply-To: References: <49CF9BA1.5030400@archlinux.org> <20090329091148.16a618bf@infradead.org> <49CFA436.5080000@archlinux.org> <49CFB553.1020800@archlinux.org> Date: Mon, 30 Mar 2009 12:08:07 -0700 X-Google-Sender-Auth: 0422d50bcab69e7e Message-ID: Subject: Re: fastboot/async and initramfs: How am I supposed to know when devices are finished initializing? From: Dan Williams To: Kay Sievers Cc: =?ISO-8859-1?Q?Thomas_B=E4chler?= , Arjan van de Ven , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 822 Lines: 26 On Mon, Mar 30, 2009 at 11:42 AM, Kay Sievers wrote: > On Mon, Mar 30, 2009 at 20:23, Dan Williams wrote: > >> settle: allow --timeout=0 to test for "queue busy" > >> + ? ? ? if (!udev_queue_get_queue_is_empty(udev_queue)) >> + ? ? ? ? ? ? ? rc = 1; > > You mean, we should not wait? Then we need to check for timeout == 0 > and return immediately instead of entering the checking loop at all, > right? > We already skip if loop==0...? Oh, this patch (against 138) needs to be reworked. Thanks, Dan -- 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/