From ce10d00810f0bbceb99f569313b2dd26ca87ec36 Mon Sep 17 00:00:00 2001 From: kdrag0n Date: Sat, 22 Dec 2018 22:36:19 -0800 Subject: [PATCH] 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 --- include/linux/blkdev.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 15c1066bb644..cf6616ebd84d 100755 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -752,13 +752,11 @@ struct request_queue { #define QUEUE_FLAG_QUIESCED 28 /* queue has been quiesced */ #define QUEUE_FLAG_PREEMPT_ONLY 29 /* only process REQ_PREEMPT requests */ -#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) | \ (1 << QUEUE_FLAG_POLL))