From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: Notify about errors during initialization Date: Mon, 5 Jan 2004 22:13:02 +0000 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20040105221302.A7678@infradead.org> References: <20040105021047.GD30408@one-eyed-alien.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from phoenix.infradead.org ([213.86.99.234]:50183 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S265967AbUAEWNK (ORCPT ); Mon, 5 Jan 2004 17:13:10 -0500 Content-Disposition: inline In-Reply-To: ; from stern@rowland.harvard.edu on Mon, Jan 05, 2004 at 05:04:59PM -0500 List-Id: linux-scsi@vger.kernel.org To: Alan Stern Cc: James Bottomley , Matthew Dharm , USB Storage List , SCSI development list On Mon, Jan 05, 2004 at 05:04:59PM -0500, Alan Stern wrote: > James: > > Can you or someone else on the SCSI development list answer this question? > > When a new host is registered and scanned for devices, are we guaranteed > that the scanning procedure will be finished when scsi_scan_host() > returns? With the current code the scanning activity has finished when we return. But I'm not sure whether we should document that assumption - if we're moving to parallel scanning that assumption might soon be void. > The reason for asking is so that the usb-storage driver can test whether > any devices were found. Depressingly often some incompatibility causes > the scan to fail, and when that happens it would be nice to put a > notification in the system log, unregister the host, and generally avoid > loading the driver as though everything was okay. Hmm. maybe we should guarantee that scsi_scan_host will have finished and introduce a scsi_scan_host_parallel when we go down that route. Or do it the other way and add a serialized version for usb-storage..