Re: very low performance on SCSI disks if device node is in tmpfs

From: Olaf Hering
Date: Wed May 26 2004 - 04:56:09 EST


On Tue, May 25, Andrew Morton wrote:

> Andrew Morton <akpm@xxxxxxxx> wrote:
> >
> > Everything there is consistent with "not doing readahead".
> >
>
>
>
> We need to set file->f_ra _after_ calling blkdev_open(), when inode->i_mapping
> points at the right thing. And we need to get it from
> inode->i_mapping->host->i_mapping too, which represents the underlying device.

That fixed it, thanks for the patch and the award!
I will take the patch and pass the award to the guy who found the bug.

--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG
-
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/