[lkml]   [2009]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: mmotm 2009-06-02-16-11 uploaded (readahead)
On Wed, Jun 03 2009, Andrew Morton wrote:
> On Tue, 02 Jun 2009 20:54:39 -0700
> Randy Dunlap <> wrote:
> > wrote:
> > > The mm-of-the-moment snapshot 2009-06-02-16-11 has been uploaded to
> > >
> > >
> > >
> > > and will soon be available at
> > >
> > > git://
> >
> >
> > readahead-add-blk_run_backing_dev.patch:
> >
> > mm/readahead.c: In function 'page_cache_async_readahead':
> > mm/readahead.c:559: error: implicit declaration of function 'blk_run_backing_dev'
> hm, yeah, CONFIG_BLOCK=n.
> Doing a block-specific call from inside page_cache_async_readahead() is
> a bit of a layering violation - this may not be a block-backed
> filesystem at all.
> otoh, perhaps blk_run_backing_dev() is wrongly named and defined in the
> wrong place. Perhaps non-block-backed backing_devs want to implement
> an unplug-style function too? In which case the whole thing should be
> renamed and moved outside blkdev.h.
> If we don't want to do that, shouldn't backing_dev_info.unplug* be
> wrapped in #ifdef CONFIG_BLOCK? And wasn't it a layering violation to
> put block-specific things into the backing_dev_info?
> Jens, talk to me!
> From the readahead POV: does it make sense to call the backing-dev's
> "unplug" function even if that isn't a block-based device? Or was this
> just a weird block-device-only performance problem? Hard to say.

Layering wise, I don't think it's that bad. It would have looked cleaner
to do:


instead, but we would still need to make that available outside of

What I don't like about the patch is that it's a heuristic, a "I poked
this and it made that faster" with nobody really understanding why. And
it's second guessing the block layer unplugging, so perhaps the real fix
should be going on there. Or perhaps it's just fine and this micro
optimization just helps this one case and that's great.

So ho humm, not terribly excited about it, but I guess we can shove it
in there for testing. But lets please use blk_run_address_space() and
add an empty stub for that.

Jens Axboe

 \ /
  Last update: 2009-06-09 06:01    [W:0.100 / U:4.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site