All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Tejun Heo <htejun@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@mandriva.com>,
	linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH][noop-iosched] don't reuse a freed request
Date: Mon, 31 Oct 2005 10:11:18 +0100	[thread overview]
Message-ID: <20051031091117.GP19267@suse.de> (raw)
In-Reply-To: <4365DCE6.9060809@gmail.com>

On Mon, Oct 31 2005, Tejun Heo wrote:
> >For now, we should add the former.
> 
> Yeap, also verified oops doesn't happen with the following patch.

Good

> I'll soon post a patch to convert noop such that it does proper 
> dispatching.  BTW, while I was looking at the code, I found something 

Sounds good.

> else, in elv_former/latter_request functions, if the iosched doesn't 
> supply the callbacks, it uses rq->queue_list.prev/next implicitly 
> (without this, this noop bug wouldn't have been triggered).  I think 
> this code is not necessary anymore.  What do you think?

Well that should still work for noop, if it has its own internal
queueing list. But I would be quite fine with removing that implicit
next/prev support and simply require io scheds to supply these functions
always if they require rq-to-rq merging. Noop is the only one that
relied on this in the past, now seems a good time to clean that up as
well.

Besides, as you note, with merging disallowed on the ->queue_head, they
don't work as expected anymore.

-- 
Jens Axboe


  reply	other threads:[~2005-10-31  9:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-31  2:30 [PATCH][noop-iosched] don't reuse a freed request Arnaldo Carvalho de Melo
2005-10-31  2:55 ` Arnaldo Carvalho de Melo
2005-10-31  3:52   ` Arnaldo Carvalho de Melo
2005-10-31  7:40 ` Jens Axboe
2005-10-31  8:04   ` Tejun Heo
2005-10-31  8:23     ` Jens Axboe
2005-10-31  8:59       ` Tejun Heo
2005-10-31  9:11         ` Jens Axboe [this message]
2005-10-31 15:53       ` Linus Torvalds
2005-10-31 18:03         ` 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=20051031091117.GP19267@suse.de \
    --to=axboe@suse.de \
    --cc=acme@mandriva.com \
    --cc=htejun@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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 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.