lkml.org 
[lkml]   [2008]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how to limit number of sectors each time
On Thu, Oct 16 2008, gshan wrote:
> Hi All,
>
> I want to limit requested sectors each time in function
> drivers/ide/ide-disk.c::__ide_do_rw_disk. The requested
> sectors were defined in rq->nr_sectors. So how to limit or decrease
> nr_sectors for data transfer each time?

Set max_sectors_kb in sysfs for that device or q->max_sectors
internally.

--
Jens Axboe



\
 
 \ /
  Last update: 2008-10-16 07:47    [W:0.048 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site