diff options
author | Michael Callahan <michaelcallahan@fb.com> | 2016-05-03 11:12:49 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-03 11:26:58 -0400 |
commit | a21f2a3ec62abe2e06500d6550659a0ff5624fbb (patch) | |
tree | 4b3894c3ce6847e169d4bd310417c6272a7a44ca /block/blk-mq.c | |
parent | 38f252553300ee1d3346a5273e95fe1dd60ca50a (diff) |
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>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 3 |
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) | |||
1122 | { | 1122 | { |
1123 | init_request_from_bio(rq, bio); | 1123 | init_request_from_bio(rq, bio); |
1124 | 1124 | ||
1125 | if (blk_do_io_stat(rq)) | 1125 | blk_account_io_start(rq, 1); |
1126 | blk_account_io_start(rq, 1); | ||
1127 | } | 1126 | } |
1128 | 1127 | ||
1129 | static inline bool hctx_allow_merges(struct blk_mq_hw_ctx *hctx) | 1128 | static inline bool hctx_allow_merges(struct blk_mq_hw_ctx *hctx) |