diff options
author | Michael Callahan <michaelcallahan@fb.com> | 2016-05-03 17:12:49 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-03 17:26:58 +0200 |
commit | a21f2a3ec62abe2e06500d6550659a0ff5624fbb (patch) | |
tree | 4b3894c3ce6847e169d4bd310417c6272a7a44ca /block | |
parent | block: add __blkdev_issue_discard (diff) | |
download | linux-a21f2a3ec62abe2e06500d6550659a0ff5624fbb.tar.xz linux-a21f2a3ec62abe2e06500d6550659a0ff5624fbb.zip |
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')
-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) { 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) |