diff mbox

[1/1] block: Minor blk_account_io_start usage cleanup

Message ID D34D3C0F.1B5B%michaelcallahan@fb.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Callahan May 2, 2016, 11:17 p.m. UTC
blk_account_io_start does not need to be wrapped with blk_do_io_stat as it
already checks
for that condition.

Signed-off-by: Michael Callahan <michaelcallahan@fb.com>
---
 static inline bool hctx_allow_merges(struct blk_mq_hw_ctx *hctx)


--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/block/blk-mq.c b/block/blk-mq.c
index 1699baf..0c2ed83 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);
 }