login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
April
»
16
Re: [PATCH] block: simplify I/O stat accounting
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jens Axboe
Subject:
Re: [PATCH] block: simplify I/O stat accounting
Date: Thursday, April 16, 2009 - 9:37 am
On Thu, Apr 16 2009, Jens Axboe wrote:
quoted text
> 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 --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] block: simplify I/O stat accounting
, Jerome Marchand
, (Thu Apr 16, 6:14 am)
Re: [PATCH] block: simplify I/O stat accounting
, Jens Axboe
, (Thu Apr 16, 9:34 am)
Re: [PATCH] block: simplify I/O stat accounting
, Jens Axboe
, (Thu Apr 16, 9:37 am)
Re: [PATCH] block: simplify I/O stat accounting
, Jens Axboe
, (Thu Apr 16, 9:38 am)
Re: [PATCH] block: simplify I/O stat accounting
, Jens Axboe
, (Thu Apr 16, 9:42 am)
Re: [PATCH] block: simplify I/O stat accounting
, Jerome Marchand
, (Fri Apr 17, 1:03 am)
[PATCH v2] block: simplify I/O stat accounting
, Jerome Marchand
, (Fri Apr 17, 4:21 am)
Re: [PATCH v2] block: simplify I/O stat accounting
, Jens Axboe
, (Fri Apr 17, 4:37 am)
Re: [PATCH v2] block: simplify I/O stat accounting
, Jens Axboe
, (Fri Apr 17, 4:54 am)
Re: [PATCH v2] block: simplify I/O stat accounting
, Jerome Marchand
, (Fri Apr 17, 5:24 am)
Re: [PATCH v2] block: simplify I/O stat accounting
, Jens Axboe
, (Fri Apr 17, 5:30 am)
[PATCH v3] block: simplify I/O stat accounting
, Jerome Marchand
, (Tue Apr 21, 6:32 am)
Re: [PATCH v3] block: simplify I/O stat accounting
, Jens Axboe
, (Wed Apr 22, 5:16 am)
Navigation
Mailing list archives
Recent posts