From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [linux-usb-devel] Re: inquiry in scsi_scan.c Date: Mon, 06 Jan 2003 15:03:29 -0600 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <200301062103.h06L3T504203@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: (from root@localhost) by pogo.mtv1.steeleye.com (8.9.3/8.9.3) id NAA22176 for ; Mon, 6 Jan 2003 13:03:39 -0800 In-Reply-To: Message from Luben Tuikov of "Mon, 06 Jan 2003 15:49:08 EST." <3E19EBC4.6000601@splentec.com> List-Id: linux-scsi@vger.kernel.org To: Luben Tuikov Cc: Matthew Dharm , Andries.Brouwer@cwi.nl, stern@rowland.harvard.edu, linux-scsi@vger.kernel.org, linux-usb-devel@lists.sourceforge.net luben@splentec.com said: > bytes_got = max(bytes_requested - cmd->resid, 0); [...] > /* let's rely on the transport to have correctly set */ > /* cmd->resid and report a broken device server */ > I'm afraid that for a large number of HBAs in the tree SCpnt->resid just isn't reliable (nothing ever needed it, and it's overhead to compute, so they didn't bother). James