Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754495AbZA3Kay (ORCPT ); Fri, 30 Jan 2009 05:30:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751462AbZA3Kaq (ORCPT ); Fri, 30 Jan 2009 05:30:46 -0500 Received: from mtagate2.de.ibm.com ([195.212.17.162]:51327 "EHLO mtagate2.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751100AbZA3Kap (ORCPT ); Fri, 30 Jan 2009 05:30:45 -0500 Date: Fri, 30 Jan 2009 11:30:43 +0100 From: Cornelia Huck To: Ming Lei Cc: kay.sievers@vrfy.org, greg@kroah.com, arjan@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] driver core: remove polling for driver_probe_done(v2) Message-ID: <20090130113043.72fd0f55@gondolin> In-Reply-To: References: <1233282702-6274-1-git-send-email-tom.leiming@gmail.com> <20090130110555.116f747a@gondolin> Organization: IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter =?ISO-8859-15?Q?Gesch=E4ftsf=FChrung:?= Erich Baier Sitz der Gesellschaft: =?ISO-8859-15?Q?B=F6blingen?= Registergericht: Amtsgericht Stuttgart, HRB 243294 X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 752 Lines: 18 On Fri, 30 Jan 2009 18:17:36 +0800, Ming Lei wrote: > If probing done does not mean the device is available, this patch should be > ignored or fixed further. > > But polling is really not good, is there a approach to avoid the polling for > appearence of the root device? I think the parts of your patch that replace polling for driver_probe_done() with waiting on the waitqueue are fine. The problematic part is the rootwait special case, where polling seems unavoidable afaics. -- 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/