Messages in this thread | | | Date | Mon, 23 Jun 2008 23:53:30 +0200 | From | Stefan Richter <> | Subject | Re: Scatter-gather list constraints |
| |
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/
| |