Re: Scatter-gather list constraints

From: Stefan Richter
Date: Mon Jun 23 2008 - 17:54:32 EST


Alan Stern wrote:
On Mon, 23 Jun 2008, David Vrabel wrote:
Can the number of entries in a sg list be limited? e.g., if the
hardware only had support for say, 64 entries?

Yes, there are two fields in struct request_queue for this: max_phys_segments (the driver's limit) and max_hw_segments (the hardware's limit).

David, also have a look at <linux/blkdev.h> from the comment "Access functions for manipulating queue properties" downwards for accessors to request queue tunables.
--
Stefan Richter
-=====-==--- -==- =-===
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/