Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756007AbYFSSkc (ORCPT ); Thu, 19 Jun 2008 14:40:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753167AbYFSSkP (ORCPT ); Thu, 19 Jun 2008 14:40:15 -0400 Received: from einhorn.in-berlin.de ([192.109.42.8]:51487 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753641AbYFSSkO (ORCPT ); Thu, 19 Jun 2008 14:40:14 -0400 X-Envelope-From: stefanr@s5r6.in-berlin.de Message-ID: <485AA7EA.6080105@s5r6.in-berlin.de> Date: Thu, 19 Jun 2008 20:39:38 +0200 From: Stefan Richter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080614 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Matthew Wilcox CC: Pekka J Enberg , Alan Stern , linux-kernel@vger.kernel.org, dsd@gentoo.org, mdharm-usb@one-eyed-alien.net, linux-usb@vger.kernel.org, vegardno@ifi.uio.no, James.Bottomley@HansenPartnership.com, linux-scsi@vger.kernel.org, Greg KH Subject: Re: [RFC/PATCH] usb-storage: wait for device scanning before mounting root References: <48118DDD.8010507@s5r6.in-berlin.de> <20080425091122.GA14990@parisc-linux.org> <20080619182310.GA30833@parisc-linux.org> In-Reply-To: <20080619182310.GA30833@parisc-linux.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1242 Lines: 28 > On Fri, Apr 25, 2008 at 03:11:23AM -0600, Matthew Wilcox wrote: >> The problem is that USB has one scsi_host per device (rather than, say, >> having one scsi_host and adding new devices to it as they're found on >> the USB bus). >> >> I'm certainly open to ideas of hooking into the mechanism -- it's just a >> list of completions after all. Something like this: [...] The problem is AFAIU not exactly how many Scsi_Host instances (initiator port representations, or something remotely related to that) are instantiated, but rather _when_ they are instantiated. On multi protocol buses or networks like USB and FireWire, it makes sense to create the SCSI initiator port representation when we discovered that there are actually SCSI targets on the bus or network. scsi_scan's API is geared towards drivers which create one or more initiator port representations right up front before going on target discovery, right? -- Stefan Richter -=====-==--- -==- =--== http://arcgraph.de/sr/ -- 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/