Skip to content

Commit

Permalink
block: disable I/O stats accounting by default
Browse files Browse the repository at this point in the history
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: Danny Lin <[email protected]>
[@0ctobot: Adapted for msm-4.19]
Signed-off-by: Adam W. Willis <[email protected]>
Signed-off-by: dreamisbaka <[email protected]>
Signed-off-by: techyminati <[email protected]>

# Conflicts:
#	include/linux/blkdev.h
  • Loading branch information
kdrag0n authored and surblazer committed Sep 26, 2021
1 parent 8bc6924 commit c655734
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -661,13 +661,11 @@ struct request_queue {
#define QUEUE_FLAG_QUIESCED 28 /* queue has been quiesced */
#define QUEUE_FLAG_INLINECRYPT 29 /* inline crypto support */

#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))

Expand Down

0 comments on commit c655734

Please sign in to comment.