public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Warning: about not setting max_sectors
@ 2002-12-09 14:55 James Bottomley
  2002-12-10 13:23 ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: James Bottomley @ 2002-12-09 14:55 UTC (permalink / raw)
  To: linux-scsi

For some reason, the SCSI core is now warning about drivers which don't set 
max_sectors.

Just for the record, we have two parameters in the template:

sg_tablesize which determines the maximum number of scatter gather entries the 
host can have (corresponds to max_phys_segments in the block layer), and

max_sectors, which imposes a maximum overall transfer length (corresponds to 
max_sectors in the block queue).

The comments over max_sectors list it as optional (if unset, we set it to the 
scsi equivalent of machine infinity---well, actually 1024, or 512Mb for usual 
blocks).

The reason it's unset on so many drivers is that usually, they have no 
absolute transfer limit, so they're just bounded by the number of entries in 
the scatter-gather list.

I can't see a reason to force every driver suddenly to have an arbitrary 
max_sectors, so if no-one objects, I'll pull out the warning.

James



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

end of thread, other threads:[~2002-12-11 14:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-09 14:55 Warning: about not setting max_sectors James Bottomley
2002-12-10 13:23 ` Christoph Hellwig
2002-12-10 14:13   ` GOTO Masanori
2002-12-10 14:47   ` James Bottomley
2002-12-11 10:57     ` Christoph Hellwig
2002-12-11 14:37       ` James Bottomley

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