From: Michael Callahan Date: Tue, 3 May 2016 15:12:49 +0000 (-0400) Subject: block: Minor blk_account_io_start usage cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a21f2a3ec62abe2e06500d6550659a0ff5624fbb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- 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)