Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932255AbXJOSuY (ORCPT ); Mon, 15 Oct 2007 14:50:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934959AbXJOSqz (ORCPT ); Mon, 15 Oct 2007 14:46:55 -0400 Received: from srv5.dvmed.net ([207.36.208.214]:39480 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934950AbXJOSqx (ORCPT ); Mon, 15 Oct 2007 14:46:53 -0400 Message-ID: <4713B58B.9050905@garzik.org> Date: Mon, 15 Oct 2007 14:46:35 -0400 From: Jeff Garzik User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Greg KH CC: Rob Landley , James Bottomley , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Jens Axboe , Suparna Bhattacharya , Nick Piggin Subject: Re: What still uses the block layer? References: <200710112011.22000.rob@landley.net> <200710141845.44750.rob@landley.net> <20071015060015.GB32268@kroah.com> <200710150336.15774.rob@landley.net> <20071015172513.GA5738@kroah.com> In-Reply-To: <20071015172513.GA5738@kroah.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-Spam-Report: SpamAssassin version 3.1.9 on srv5.dvmed.net summary: Content analysis details: (-4.4 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1886 Lines: 45 Greg KH wrote: > On Mon, Oct 15, 2007 at 03:36:15AM -0500, Rob Landley wrote: >> The point I was trying to make is that it seems to me like it would be >> possible to keep the namespace separate here, and thus reduce the enumeration >> problems to the point where common cases (like my laptop) aren't impacted by >> them during early boot. > > Proposals on how to do this would be gladly reviewed. Agreed. > But again, please remember that these USB devices are really SCSI > devices. Same for SATA devices. There is a reason they are using the > SCSI layer, and it isn't just because the developers felt like it :) /somewhat/ true I'm afraid: libata uses the SCSI layer for ATAPI devices because they are essentially bridges to SCSI devices. It uses the SCSI layer for ATA devices because the SCSI layer provided a huge amount of infrastructure that would need to have been otherwise duplicated, /then/ massaged into coordinating between and when dealing with ATAPI. There is also a detail that was of /huge/ value when introducing a new device class: distro installers automatically work, if you use SCSI. If you use a new block device type, that behaves differently from other types and is on a different major, you have to poke the distros into action or do it yourself. IOW, it was the high Just Works(tm) value of the SCSI layer when it came to ATA (not ATAPI) devices. For the future, ATA will eventually be more independent (though the SCSI simulator will be available as an option, for compat), but the value is big enough to put that task on the back-burner. Jeff - 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/