From: Jens Axboe <jens.axboe@oracle.com>
To: Jerome Marchand <jmarchan@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block: simplify I/O stat accounting
Date: Thu, 16 Apr 2009 18:37:28 +0200 [thread overview]
Message-ID: <20090416163728.GS5178@kernel.dk> (raw)
In-Reply-To: <20090416163456.GR5178@kernel.dk>
On Thu, Apr 16 2009, Jens Axboe wrote:
> On Thu, Apr 16 2009, Jerome Marchand wrote:
> >
> > This simplifies I/O stat accounting switching code and separates it
> > completely from I/O scheduler switch code.
> >
> > Requests are accounted according to the state of their request queue
> > at the time of the request allocation. There is no need anymore to
> > flush the request queue when switching I/O accounting state.
>
> This is cleaner, I like it. I'll apply it, but I'm changing this one:
>
> > @@ -792,9 +792,10 @@ static struct request *get_request(struct
> > request_queue *q, int rw_flags,
> > if (priv)
> > rl->elvpriv++;
> >
> > + iostat = blk_queue_io_stat(q) ? REQ_IO_STAT : 0;
> > spin_unlock_irq(q->queue_lock);
>
> to a regular if, I hate these ?: constructs. An if is much more
> readable, imho.
Grmbl, your patch is line wrapped. Please fix your mailer.
--
Jens Axboe
next prev parent reply other threads:[~2009-04-16 16:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 13:14 [PATCH] block: simplify I/O stat accounting Jerome Marchand
2009-04-16 16:34 ` Jens Axboe
2009-04-16 16:37 ` Jens Axboe [this message]
2009-04-16 16:38 ` Jens Axboe
2009-04-16 16:42 ` Jens Axboe
2009-04-17 8:03 ` Jerome Marchand
2009-04-17 11:21 ` [PATCH v2] " Jerome Marchand
2009-04-17 11:37 ` Jens Axboe
2009-04-17 11:54 ` Jens Axboe
2009-04-17 12:24 ` Jerome Marchand
2009-04-17 12:30 ` Jens Axboe
2009-04-21 13:32 ` [PATCH v3] " Jerome Marchand
2009-04-22 12:16 ` 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=20090416163728.GS5178@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=jmarchan@redhat.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