From: Jens Axboe <axboe@suse.de>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Tejun Heo <htejun@gmail.com>,
Arnaldo Carvalho de Melo <acme@mandriva.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH][noop-iosched] don't reuse a freed request
Date: Mon, 31 Oct 2005 19:03:15 +0100 [thread overview]
Message-ID: <20051031180314.GZ19267@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0510310746340.27915@g5.osdl.org>
On Mon, Oct 31 2005, Linus Torvalds wrote:
>
>
> On Mon, 31 Oct 2005, Jens Axboe wrote:
> >
> > So either we disable merging for noop by setting REQ_NOMERGE in
> > elevator_noop_add_request(), or we add a noop_list and do the
> > dispatching like in the other io schedulers. I'd prefer the latter,
> > merging is still beneficial for noop (and it has always done it).
> >
> > For now, we should add the former.
> >
> > Signed-off-by: Jens Axboe <axboe@suse.de>
>
> Btw, Jens, I appreciate seeing the discussion history when applying a
> patch, but at the same time I do _not_ want to use it as a commit message,
> it's just too confusing and worthless in that context.
>
> And yet, your final comments don't much make sense without the background,
> so I can't just use them either.
>
> So, I rewrote the explanation. Which is fine, but I wish people who sent
> patches would think more about what message they want to have in the
> commit logs, so that (a) Lazy-Linus doesn't have to write his own message
> and (b) so that the message is correct when Lazy-and-Stupid-Linus
> sometimes doesn't necessarily see/understand all the problems it fixes.
>
> Btw, the email-patch-sending protocol still allows for putting all the
> ugly history in for my (and the mailing lists) pleasure: that's what the
> "---" marker after the explanation is for. So you can _both_ have a nice
> clean commit message _and_ give more of a historical background for the
> patch.
My bad, I know I'm a little bad at describing patches sometimes (Andrew
has been on my case in the past as well), I will make a conscious effort
to describe them better.
> Anyway, in this case, the commit message ended up looking like this::
>
> commit 581c1b14394aee60aff46ea67d05483261ed6527
> Author: Jens Axboe <axboe@suse.de>
> Date: Mon Oct 31 09:23:54 2005 +0100
>
> [PATCH] noop-iosched: avoid corrupted request merging
>
> Tejun Heo notes:
>
> "I'm currently debugging this. The problem is that we are using the
> generic dispatch queue directly in the noop sched and merging is NOT
> allowed on dispatch queues but generic handling of last_merge tries
> to merge requests. I'm still trying to verify this, so I'll be back
> with results soon."
>
> In the meantime, disable merging for noop by setting REQ_NOMERGE in
> elevator_noop_add_request().
>
> Eventually, we should add a noop_list and do the dispatching like in the
> other io schedulers. Merging is still beneficial for noop (and it has
> always done it).
>
> Signed-off-by: Jens Axboe <axboe@suse.de>
> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
>
> which is basically your email cleaned up and compressed into a readable
> commit message.
Indeed, looks good, thanks for writing it up!
--
Jens Axboe
prev parent reply other threads:[~2005-10-31 18:02 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
2005-10-31 15:53 ` Linus Torvalds
2005-10-31 18:03 ` 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=20051031180314.GZ19267@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.