From: Jens Axboe <axboe@suse.de>
To: Andrew Morton <akpm@osdl.org>
Cc: jgarzik@pobox.com, linux-kernel@vger.kernel.org
Subject: Re: cfq build breakage
Date: Tue, 28 Jun 2005 09:25:21 +0200 [thread overview]
Message-ID: <20050628072520.GA3668@suse.de> (raw)
In-Reply-To: <20050627233055.20029d85.akpm@osdl.org>
On Mon, Jun 27 2005, Andrew Morton wrote:
> Jens Axboe <axboe@suse.de> wrote:
> >
> > On Mon, Jun 27 2005, Andrew Morton wrote:
> > > Jeff Garzik <jgarzik@pobox.com> wrote:
> > > >
> > > >
> > > > In latest git tree...
> > > >
> > > > CC [M] drivers/block/cfq-iosched.o
> > > > drivers/block/cfq-iosched.c: In function `cfq_put_queue':
> > > > drivers/block/cfq-iosched.c:303: sorry, unimplemented: inlining failed
> > > > in call to 'cfq_pending_requests': function body not available
> > > > drivers/block/cfq-iosched.c:1080: sorry, unimplemented: called from here
> > > > drivers/block/cfq-iosched.c: In function `__cfq_may_queue':
> > > > drivers/block/cfq-iosched.c:1955: warning: the address of
> > > > `cfq_cfqq_must_alloc_slice', will always evaluate as `true'
> > > > make[2]: *** [drivers/block/cfq-iosched.o] Error 1
> > > > make[1]: *** [drivers/block] Error 2
> > > > make: *** [drivers] Error 2
> > >
> > > hm. The inline thing is trivial, but the misuse of
> > > cfq_cfqq_must_alloc_slice() means that we now wander into untested
> > > territory.
> >
> > Indeed, which compiler errors on that?
>
> 4.0 and later, I guess.
Ok
> > > @@ -1969,7 +1968,7 @@ __cfq_may_queue(struct cfq_data *cfqd, s
> > > * only allow 1 ELV_MQUEUE_MUST per slice, otherwise we
> > > * can quickly flood the queue with writes from a single task
> > > */
> > > - if (rw == READ || !cfq_cfqq_must_alloc_slice) {
> > > + if (rw == READ || !cfq_cfqq_must_alloc_slice(cfqq)) {
> > > cfq_mark_cfqq_must_alloc_slice(cfqq);
> > > return ELV_MQUEUE_MUST;
> > > }
> >
> > thanks, clearly a typo but inside if 0.
>
> But the other instance was inside `#if 1'. This fixup will change behaviour.
Hrmpf strange, I submitted what I built. Must be some silly slip up
here.
--
Jens Axboe
next prev parent reply other threads:[~2005-06-28 7:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-28 2:19 cfq build breakage Jeff Garzik
2005-06-28 3:13 ` Andrew Morton
2005-06-28 3:31 ` Jeff Garzik
2005-06-28 6:21 ` Jens Axboe
2005-06-28 6:30 ` Andrew Morton
2005-06-28 7:25 ` Jens Axboe [this message]
2005-06-28 9:43 ` 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=20050628072520.GA3668@suse.de \
--to=axboe@suse.de \
--cc=akpm@osdl.org \
--cc=jgarzik@pobox.com \
--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