[uClinux-dev] problem with read aheads in a block device driver

Pavan G S pavangs at myw.ltindia.com
Tue Mar 11 01:31:32 EST 2003


Hi all,
I'am writing a block device driver on a uclinux platform.
whenever a read is performed, if the address range goes beyond the
range of device address i'am performing an end_request(0) which is
issuing a message "i/o error::end_request(0)" and the 
request function is again called....sometimes 4 times, sometimes 8
times, etc i.e what i reckon is that it is performing read ahead inspite
of initialising read_ahead[] to zero.
how to stop the request function from being called once i find its
crossing the range?
Thanks in advance,
Pavan



More information about the uClinux-dev mailing list