Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946162AbWJaXvR (ORCPT ); Tue, 31 Oct 2006 18:51:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946165AbWJaXvR (ORCPT ); Tue, 31 Oct 2006 18:51:17 -0500 Received: from mailhub.fokus.fraunhofer.de ([193.174.154.14]:62874 "EHLO mailhub.fokus.fraunhofer.de") by vger.kernel.org with ESMTP id S1946162AbWJaXvQ (ORCPT ); Tue, 31 Oct 2006 18:51:16 -0500 Date: Wed, 01 Nov 2006 00:51:00 +0100 From: Joerg.Schilling@fokus.fraunhofer.de (Joerg Schilling) To: arjan@infradead.org Cc: schilling@fokus.fraunhofer.de, linux-kernel@vger.kernel.org Subject: Re: SCSI over USB showstopper bug? Message-ID: <4547e164.k3W0GpiCAd3p3Tkh%Joerg.Schilling@fokus.fraunhofer.de> References: <4547c966.8oyAB/pzCZ7bGUza%Joerg.Schilling@fokus.fraunhofer.de> <1162333090.3044.53.camel@laptopd505.fenrus.org> In-Reply-To: <1162333090.3044.53.camel@laptopd505.fenrus.org> User-Agent: nail 11.22 3/20/05 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1457 Lines: 37 Arjan van de Ven wrote: > On Tue, 2006-10-31 at 23:08 +0100, Joerg Schilling wrote: > > Hi, > > > > it looks as if SG_GET_RESERVED_SIZE & SG_SET_RESERVED_SIZE > > are not in interaction with the underlying SCSI transport. > > > > Programs like readcd and cdda2wav that try to get very large SCSI > > transfer buffers get a confirmation for nearly any SCSI transfer size > > but later when readcd/cdda2wav try to transfer data with an > > actual SCSI command, they fail with ENOMEM. > > > > Correct fix: let sg.c make a callback to the underlying SCSI transport > > and let it get a confirmation tfor the buffer size. > > > > Quick and dirty fix: reduce the maximum allowed DMA size to the smallest > > max DMA size of all SCSI transports. > > real good fix: > > use SG_IO on the device directly that checks this already >From looking into the source, this claim seems to be wrong. J?rg -- EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin js@cs.tu-berlin.de (uni) schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily - 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/