From: Nick Piggin <npiggin@suse.de>
To: Aaron Carroll <aaronc@gelato.unsw.edu.au>
Cc: Jens Axboe <jens.axboe@oracle.com>,
linux-kernel@vger.kernel.org,
Peter Chubb <peterc@gelato.unsw.edu.au>
Subject: Re: [PATCH] as-iosched: fix write batch start point
Date: Wed, 5 Dec 2007 11:14:34 +0100 [thread overview]
Message-ID: <20071205101434.GE1114@wotan.suse.de> (raw)
In-Reply-To: <4756784B.40607@gelato.unsw.edu.au>
On Wed, Dec 05, 2007 at 09:07:07PM +1100, Aaron Carroll wrote:
> New write batches currently start from where the last one completed.
> We have no idea where the head is after switching batches, so this
> makes little sense. Instead, start the next batch from the request
> with the earliest deadline in the hope that we avoid a deadline
> expiry later on.
>
> Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au>
I think this seems reasonable. What's deadline doing in this case?
They should probably be kept in synch where possible...
Acked-by: Nick Piggin <npiggin@suse.de>
> ---
> block/as-iosched.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/block/as-iosched.c b/block/as-iosched.c
> index 4513fc5..555cd6b 100644
> --- a/block/as-iosched.c
> +++ b/block/as-iosched.c
> @@ -1097,7 +1097,8 @@ dispatch_writes:
> ad->batch_data_dir = REQ_ASYNC;
> ad->current_write_count = ad->write_batch_count;
> ad->write_batch_idled = 0;
> - rq = ad->next_rq[ad->batch_data_dir];
> + rq = rq_entry_fifo(ad->fifo_list[REQ_ASYNC].next);
> + ad->last_check_fifo[REQ_ASYNC] = jiffies;
> goto dispatch_request;
> }
>
> --
next prev parent reply other threads:[~2007-12-05 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 10:07 Aaron Carroll
2007-12-05 10:14 ` Nick Piggin [this message]
2007-12-05 10:15 ` 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=20071205101434.GE1114@wotan.suse.de \
--to=npiggin@suse.de \
--cc=aaronc@gelato.unsw.edu.au \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterc@gelato.unsw.edu.au \
/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
Powered by JetHome