summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Callahan <michaelcallahan@fb.com>2016-05-03 11:12:49 -0400
committerJens Axboe <axboe@fb.com>2016-05-03 09:26:58 -0600
commita21f2a3ec62abe2e06500d6550659a0ff5624fbb (patch)
tree4b3894c3ce6847e169d4bd310417c6272a7a44ca
parent38f252553300ee1d3346a5273e95fe1dd60ca50a (diff)
downloadlinux-a21f2a3ec62abe2e06500d6550659a0ff5624fbb.tar.bz2
block: Minor blk_account_io_start usage cleanup
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>
-rw-r--r--block/blk-mq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 1699baf39b78..0c2ed831c926 100644
--- 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)