From: Jens Axboe <axboe@suse.de>
To: Srihari Vijayaraghavan <sriharivijayaraghavan@yahoo.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PROBLEM] Badness in cfq_account_completion at drivers/block/cfq-iosched.c:916
Date: Wed, 12 Jan 2005 08:42:29 +0100 [thread overview]
Message-ID: <20050112074225.GF2793@suse.de> (raw)
In-Reply-To: <20050112013610.20873.qmail@web52610.mail.yahoo.com>
On Wed, Jan 12 2005, Srihari Vijayaraghavan wrote:
> --- Jens Axboe <axboe@suse.de> wrote:
> > ...
> > Does this fix it?
> >
> > ===== drivers/block/cfq-iosched.c 1.17 vs edited
> > =====
> > --- 1.17/drivers/block/cfq-iosched.c 2004-12-24
> > 09:12:58 +01:00
> > +++ edited/drivers/block/cfq-iosched.c 2005-01-11
> > 10:03:17 +01:00
> > @@ -622,8 +622,10 @@
> > cfq_sort_rr_list(cfqq, 0);
> > }
> >
> > - crq->accounted = 0;
> > - cfqq->cfqd->rq_in_driver--;
> > + if (crq->accounted) {
> > + crq->accounted = 0;
> > + cfqq->cfqd->rq_in_driver--;
> > + }
> > }
> > list_add(&rq->queuelist, &q->queue_head);
> > }
>
> Yes, it does fix the problem with cfq, and the system
> works fine. No more "Badness" error messages. Thanks
> Jens.
Super, thanks.
> While you are at it, is this acceptable?:
> --- test/drivers/block/elevator.c.orig 2005-01-11
> 15:47:07.000000000 +1100
> +++ test/drivers/block/elevator.c 2005-01-12
> 12:16:19.365813400 +1100
> @@ -170,8 +170,6 @@
> #else
> #error "You must build at least 1 IO scheduler into
> the kernel"
> #endif
> - printk(KERN_INFO "elevator: using %s as default io
> scheduler\n",
> - chosen_elevator);
> }
>
> static int __init elevator_setup(char *str)
> @@ -516,6 +514,9 @@
> spin_unlock_irq(&elv_list_lock);
>
> printk(KERN_INFO "io scheduler %s registered\n",
> e->elevator_name);
> + if (!strcmp(e->elevator_name, chosen_elevator))
> + printk(KERN_INFO "elevator: using %s as default io
> scheduler\n",
> +
> e->elevator_name);
> return 0;
> }
> EXPORT_SYMBOL_GPL(elv_register);
>
> It has an advantage of working even when one uses
> "elevator=" kernel boot parameter. If it is wrong
> completely, I am sorry about it.
Yes that's a good idea, perhaps just adding "(default)" at the end of
the default io scheduler is better so we save that extra line.
--
Jens Axboe
prev parent reply other threads:[~2005-01-12 7:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-11 5:23 [PROBLEM] Badness in cfq_account_completion at drivers/block/cfq-iosched.c:916 Srihari Vijayaraghavan
2005-01-11 9:04 ` Jens Axboe
2005-01-12 1:36 ` Srihari Vijayaraghavan
2005-01-12 7:42 ` Jens Axboe [this message]
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=20050112074225.GF2793@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sriharivijayaraghavan@yahoo.com.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.