sd.c read-ahead question

Samuli Kaski (samkaski@cs.Helsinki.FI)
Wed, 29 Oct 1997 11:27:09 +0200 (EET)


Howdie,

from the 2.0.31 source tree:

/* If our host adapter is capable of scatter-gather, then we increase
* the read-ahead to 16 blocks (32 sectors). If not, we use
* a two block (4 sector) read ahead.
*/
if(rscsi_disks[0].device && rscsi_disks[0].device->host->sg_tablesize)
read_ahead[MAJOR_NR] = 120; /* 120 sector read-ahead */
else
read_ahead[MAJOR_NR] = 4; /* 4 sector read-ahead */

Which one is correct? The code or the comment? Seems to me as a quite
big difference. I have been trying it with 16, 32 and the default 120
but haven't yet seen any noticable difference between the settings.

Any comments?

--
Samuli Kaski, samkaski@cs.helsinki.fi
Department of Computer Science, University of Helsinki, Finland.