public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SCSI over USB showstopper bug?
@ 2006-10-31 22:08 Joerg Schilling
  2006-10-31 22:18 ` Arjan van de Ven
  0 siblings, 1 reply; 8+ messages in thread
From: Joerg Schilling @ 2006-10-31 22:08 UTC (permalink / raw)
  To: schilling, linux-kernel

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.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-11-06 16:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-31 22:08 SCSI over USB showstopper bug? Joerg Schilling
2006-10-31 22:18 ` Arjan van de Ven
2006-10-31 23:51   ` Joerg Schilling
2006-11-01 15:31     ` Jens Axboe
2006-11-01 18:25       ` Joerg Schilling
2006-11-01 18:31         ` Jens Axboe
2006-11-06 16:00           ` Joerg Schilling
2006-11-06 16:07             ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox