Messages in this thread | | | Date | Thu, 16 Oct 2008 07:44:01 +0200 | From | Jens Axboe <> | Subject | Re: 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
| |