From: kdrag0n Date: Sun, 23 Dec 2018 06:36:19 +0000 (-0800) Subject: block: disable I/O stats accounting by default X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=42d3a5624e796c58b55389ef5b4a741548b694e9;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git block: disable I/O stats accounting by default While Android userspace (e.g. storaged) does use iostats via /proc/diskstats, init will explicitly enable iostats for the devices on which it is primarily used - sda and sdf. Avoid the 0.5-1% overhead for block devices that do not need it. Signed-off-by: kdrag0n --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 58fd06e8f960..447b98171ac3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -499,13 +499,11 @@ struct request_queue { #define QUEUE_FLAG_POLL 22 /* IO polling enabled if set */ #define QUEUE_FLAG_FAST 23 /* fast block device (e.g. ram based) */ -#define QUEUE_FLAG_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ - (1 << QUEUE_FLAG_STACKABLE) | \ +#define QUEUE_FLAG_DEFAULT ((1 << QUEUE_FLAG_STACKABLE) | \ (1 << QUEUE_FLAG_SAME_COMP) | \ (1 << QUEUE_FLAG_ADD_RANDOM)) -#define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ - (1 << QUEUE_FLAG_STACKABLE) | \ +#define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_STACKABLE) | \ (1 << QUEUE_FLAG_SAME_COMP)) static inline void queue_lockdep_assert_held(struct request_queue *q)