Skip to content

Commit 4822e90

Browse files
koct9iaxboe
authored andcommitted
block: describe difference between flags IO_STAT and STATS
This adds reasonable comments, but they definitely needs better names. Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 486c6fb commit 4822e90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/linux/blkdev.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ typedef __u32 __bitwise req_flags_t;
108108
#define RQF_QUIET ((__force req_flags_t)(1 << 11))
109109
/* elevator private data attached */
110110
#define RQF_ELVPRIV ((__force req_flags_t)(1 << 12))
111-
/* account I/O stat */
111+
/* account into disk and partition IO statistics */
112112
#define RQF_IO_STAT ((__force req_flags_t)(1 << 13))
113113
/* request came from our alloc pool */
114114
#define RQF_ALLOCED ((__force req_flags_t)(1 << 14))
115115
/* runtime pm request */
116116
#define RQF_PM ((__force req_flags_t)(1 << 15))
117117
/* on IO scheduler merge hash */
118118
#define RQF_HASHED ((__force req_flags_t)(1 << 16))
119-
/* IO stats tracking on */
119+
/* track IO completion time */
120120
#define RQF_STATS ((__force req_flags_t)(1 << 17))
121121
/* Look at ->special_vec for the actual data payload instead of the
122122
bio chain. */
@@ -685,7 +685,7 @@ struct request_queue {
685685
#define QUEUE_FLAG_FAIL_IO 7 /* fake timeout */
686686
#define QUEUE_FLAG_NONROT 9 /* non-rotational device (SSD) */
687687
#define QUEUE_FLAG_VIRT QUEUE_FLAG_NONROT /* paravirt device */
688-
#define QUEUE_FLAG_IO_STAT 10 /* do IO stats */
688+
#define QUEUE_FLAG_IO_STAT 10 /* do disk/partitions IO accounting */
689689
#define QUEUE_FLAG_DISCARD 11 /* supports DISCARD */
690690
#define QUEUE_FLAG_NOXMERGES 12 /* No extended merges */
691691
#define QUEUE_FLAG_ADD_RANDOM 13 /* Contributes to random pool */
@@ -699,7 +699,7 @@ struct request_queue {
699699
#define QUEUE_FLAG_FUA 21 /* device supports FUA writes */
700700
#define QUEUE_FLAG_FLUSH_NQ 22 /* flush not queueuable */
701701
#define QUEUE_FLAG_DAX 23 /* device supports DAX */
702-
#define QUEUE_FLAG_STATS 24 /* track rq completion times */
702+
#define QUEUE_FLAG_STATS 24 /* track IO start and completion times */
703703
#define QUEUE_FLAG_POLL_STATS 25 /* collecting stats for hybrid polling */
704704
#define QUEUE_FLAG_REGISTERED 26 /* queue has been registered to a disk */
705705
#define QUEUE_FLAG_SCSI_PASSTHROUGH 27 /* queue supports SCSI commands */

0 commit comments

Comments
 (0)