From: Al Viro Subject: Re: TYPE_RBC cache fixes (sbp2.c affected) Date: Sat, 21 May 2005 17:22:20 +0100 Message-ID: <20050521162220.GU29811@parcelfarce.linux.theplanet.co.uk> References: <20050516015955.GL1150@parcelfarce.linux.theplanet.co.uk> <1116687698.4999.3.camel@mulgrave> <428F55F1.3090006@pobox.com> <1116691256.4999.16.camel@mulgrave> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:10896 "EHLO parcelfarce.linux.theplanet.co.uk") by vger.kernel.org with ESMTP id S261752AbVEUQV4 (ORCPT ); Sat, 21 May 2005 12:21:56 -0400 Content-Disposition: inline In-Reply-To: <1116691256.4999.16.camel@mulgrave> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: Jeff Garzik , SCSI Mailing List , linux1394-devel@lists.sourceforge.net On Sat, May 21, 2005 at 11:00:56AM -0500, James Bottomley wrote: > On Sat, 2005-05-21 at 11:38 -0400, Jeff Garzik wrote: > > That's why its in sbp2-specific code... > > > > The above code certainly applies to real-world cases, at least. Just > > look at the code that was removed... MS(10) handling. > > I know that; and I know it has the effect of the replaced code. > However, I don't understand why SBC2 feels entitled to ignore the RBC > standard here ... that standard was primarily created for SBC2 devices. Tell that to firmware authors, why don't you? > So was the code in sbc2 because non-RBC devices needed the 10 byte > command and RBC ones just happened not to reject it? My sense here is > that we should have code in scsi_scan.c to set sdev->use_10_for_rw and > reset sdev->use_10_for_ms before the slave configure predicated on > TYPE_RBC. > > Does anyone actually have one of these RBC devices and does it reject > the six byte mode sense commands? Yes, will check and do not expect the results to apply to other devices...