From: Jens Axboe <jens.axboe@oracle.com>
To: Damien Wyart <damien.wyart@free.fr>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [GIT PULL] block bits for 2.6.30-rc3
Date: Wed, 22 Apr 2009 14:47:03 +0200 [thread overview]
Message-ID: <20090422124702.GH4593@kernel.dk> (raw)
In-Reply-To: <20090422124009.GG4593@kernel.dk>
On Wed, Apr 22 2009, Jens Axboe wrote:
> On Wed, Apr 22 2009, Damien Wyart wrote:
> > Hello,
> >
> > > A collection of fixes for 2.6.30-rc3. It includes fixes for
> > > regressions and bug fixes in general, along with two buglets in CFQ.
> > > Please pull.
> >
> > What about this bug in CFQ: http://lkml.org/lkml/2009/4/20/68 ?
> >
> > Do you plan to have it fixed for 2.6.30 or will it wait until 2.6.31?
>
> Not sure. In theory we could just do the one-liner and make
> ->slice_resid negative (like below), but it needs some targetted
> testing. And given that it's been there for several releases, it's not
> really a rush to get it fixed for 2.6.30.
>
> But I'll definitely throw it into the testing mix, and if deemed safe
> enough, get it in there for 2.6.30.
>
> diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
> index 7e13f04..17549f7 100644
> --- a/block/cfq-iosched.c
> +++ b/block/cfq-iosched.c
> @@ -887,7 +887,7 @@ __cfq_slice_expired(struct cfq_data *cfqd, struct cfq_queue *cfqq,
> * store what was left of this slice, if the queue idled/timed out
> */
> if (timed_out && !cfq_cfqq_slice_new(cfqq)) {
> - cfqq->slice_resid = cfqq->slice_end - jiffies;
> + cfqq->slice_resid = jiffies - cfqq->slice_end;
> cfq_log_cfqq(cfqd, cfqq, "resid=%ld", cfqq->slice_resid);
> }
BTW, it doesn't even matter for preempted processes, since they get
front insertion always. The better fix is probably to just kill
->slice_resid, or at least rethink the logic.
I'll let it sit for 2.6.30 and come up with something alternative (or
kill it) for 2.6.31.
--
Jens Axboe
next prev parent reply other threads:[~2009-04-22 12:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-22 12:03 [GIT PULL] block bits for 2.6.30-rc3 Jens Axboe
2009-04-22 12:31 ` Damien Wyart
2009-04-22 12:40 ` Jens Axboe
2009-04-22 12:47 ` Jens Axboe [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-04-23 10:35 Jens Axboe
2009-04-23 11:14 ` Jeff Garzik
2009-04-23 11:39 ` 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=20090422124702.GH4593@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=damien.wyart@free.fr \
--cc=linux-kernel@vger.kernel.org \
/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