Re: how to limit number of sectors each time

From: Jens Axboe
Date: Thu Oct 16 2008 - 01:44:56 EST


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

--
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/