lkml.org 
[lkml]   [2008]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/


\
 
 \ /
  Last update: 2008-06-23 23:57    [W:0.132 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site