public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ra_pages and max_sectors
@ 2006-10-14 19:17 Philipp Kohlbecher
  0 siblings, 0 replies; only message in thread
From: Philipp Kohlbecher @ 2006-10-14 19:17 UTC (permalink / raw)
  To: linux-kernel

Hello!

I was wondering why I can change the read-ahead size of my DVD drive via hdparm -a [size], but not by writing into /sys/block/hdb/queue/read_ahead_kb.

In other words: Why does queue_ra_store() [block/ll_rw_blk.c:3755] perform the following check

        if (ra_kb > (q->max_sectors >> 1))
                ra_kb = (q->max_sectors >> 1);

while blkdev_locked_ioctl() [block/ioctl.c:138] does not check this in the case that cmd == BLKRASET?

Thanks for your consideration,
- Philipp Kohlbecher


Please CC me -- I'm not on the list.
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-14 19:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-14 19:17 ra_pages and max_sectors Philipp Kohlbecher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox