From 181d55d7fb1bea1bc9477ce2f47d22e030a4edb2 Mon Sep 17 00:00:00 2001 From: Park Ju Hyung Date: Fri, 8 Mar 2019 23:02:21 +0900 Subject: [PATCH] blk: disable IO_STAT completely Signed-off-by: Park Ju Hyung --- block/blk.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/block/blk.h b/block/blk.h index c745b98ffdbf..8ae7c7c554e3 100755 --- a/block/blk.h +++ b/block/blk.h @@ -277,9 +277,7 @@ extern int blk_update_nr_requests(struct request_queue *, unsigned int); */ static inline int blk_do_io_stat(struct request *rq) { - return rq->rq_disk && - (rq->rq_flags & RQF_IO_STAT) && - !blk_rq_is_passthrough(rq); + return false; } static inline void req_set_nomerge(struct request_queue *q, struct request *req)