projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38f2525
)
block: Minor blk_account_io_start usage cleanup
author
Michael Callahan
<michaelcallahan@fb.com>
Tue, 3 May 2016 15:12:49 +0000
(11:12 -0400)
committer
Jens Axboe
<axboe@fb.com>
Tue, 3 May 2016 15:26:58 +0000
(09:26 -0600)
blk_account_io_start does not need to be wrapped with blk_do_io_stat
ais it already checks for that condition.
Signed-off-by: Michael Callahan <michaelcallahan@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index 1699baf39b78a8379c3cd5559b324d71da41f100..0c2ed831c926e89983a1a04c7462b1a1033e07bb 100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-1122,8
+1122,7
@@
static void blk_mq_bio_to_request(struct request *rq, struct bio *bio)
{
init_request_from_bio(rq, bio);
- if (blk_do_io_stat(rq))
- blk_account_io_start(rq, 1);
+ blk_account_io_start(rq, 1);
}
static inline bool hctx_allow_merges(struct blk_mq_hw_ctx *hctx)