block: Minor blk_account_io_start usage cleanup
authorMichael Callahan <michaelcallahan@fb.com>
Tue, 3 May 2016 15:12:49 +0000 (11:12 -0400)
committerJens 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

index 1699baf39b78a8379c3cd5559b324d71da41f100..0c2ed831c926e89983a1a04c7462b1a1033e07bb 100644 (file)
@@ -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)