Skip to content

Commit 27fc57f

Browse files
tytydracoPixelBoot
authored andcommitted
block: Do not collect I/O statistics
This adds a great deal of latency to block requests due to disabling preemption temporarily during statistics collection. Signed-off-by: Tyler Nijmeh <tylernij@gmail.com> Signed-off-by: sohamxda7 <sensoham135@gmail.com>
1 parent d3499a8 commit 27fc57f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

include/linux/blkdev.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,11 @@ struct request_queue {
501501
#define QUEUE_FLAG_FAST 23 /* fast block device (e.g. ram based) */
502502
#define QUEUE_FLAG_INLINECRYPT 24 /* inline encryption support */
503503

504-
#define QUEUE_FLAG_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \
505-
(1 << QUEUE_FLAG_STACKABLE) | \
504+
#define QUEUE_FLAG_DEFAULT ((1 << QUEUE_FLAG_STACKABLE) | \
506505
(1 << QUEUE_FLAG_SAME_COMP) | \
507506
(1 << QUEUE_FLAG_ADD_RANDOM))
508507

509-
#define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \
510-
(1 << QUEUE_FLAG_STACKABLE) | \
508+
#define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_STACKABLE) | \
511509
(1 << QUEUE_FLAG_SAME_COMP))
512510

513511
static inline void queue_lockdep_assert_held(struct request_queue *q)

0 commit comments

Comments
 (0)