public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: Matthew Garrett <mjg@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] laptop-mode: Make flushes per-device
Date: Sat, 12 Dec 2009 13:24:43 +0100	[thread overview]
Message-ID: <20091212122443.GA8742@kernel.dk> (raw)
In-Reply-To: <1260554071-2190-1-git-send-email-mjg@redhat.com>

On Fri, Dec 11 2009, Matthew Garrett wrote:
> One of the features of laptop-mode is that it forces a writeout of dirty
> pages if something else triggers a physical read or write from a device.
> The current implementation flushes pages on all devices, rather than only
> the one that triggered the flush. This patch alters the behaviour so that
> only the recently accessed block device is flushed, preventing other
> disks being spun up for no terribly good reason.
> 
> Signed-off-by: Matthew Garrett <mjg@redhat.com>
> ---
> 
> The forward struct declaration in writeback.h seems messy, but I'm not
> sure there's a cleaner way to do this. I'm also still woefully
> unfamiliar with the block layer - I /think/ this does the right thing,
> but some review would be nice.

That's because it is messy, why are you passing the request in? It
would be a lot more sane to pass in the queue, better still the backing
device.

What guarentees that the timer isn't running when the bdi goes away?

-- 
Jens Axboe


  reply	other threads:[~2009-12-12 12:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11 16:08 [PATCH] laptop-mode: Make flushes per-device Matthew Garrett
2009-12-11 16:44 ` Matthew Garrett
2009-12-11 17:54   ` Matthew Garrett
2009-12-12 12:24     ` Jens Axboe [this message]
2009-12-14 19:05       ` Matthew Garrett
2009-12-14 19:08         ` Jens Axboe
2009-12-14 19:48           ` [PATCH v2] " Matthew Garrett
2009-12-14 19:58             ` Jens Axboe
2009-12-14 20:54               ` Matthew Garrett
2009-12-15 18:21               ` [PATCH v3] " Matthew Garrett
2010-04-03 17:10                 ` Matthew Garrett
2010-04-06 12:24                   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091212122443.GA8742@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjg@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox