aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h58
1 files changed, 27 insertions, 31 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 24ccab51085f..3603270cb82d 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -572,37 +572,33 @@ struct request_queue {
572 u64 write_hints[BLK_MAX_WRITE_HINTS]; 572 u64 write_hints[BLK_MAX_WRITE_HINTS];
573}; 573};
574 574
575#define QUEUE_FLAG_STOPPED 1 /* queue is stopped */ 575#define QUEUE_FLAG_STOPPED 0 /* queue is stopped */
576#define QUEUE_FLAG_DYING 2 /* queue being torn down */ 576#define QUEUE_FLAG_DYING 1 /* queue being torn down */
577#define QUEUE_FLAG_BIDI 4 /* queue supports bidi requests */ 577#define QUEUE_FLAG_BIDI 2 /* queue supports bidi requests */
578#define QUEUE_FLAG_NOMERGES 5 /* disable merge attempts */ 578#define QUEUE_FLAG_NOMERGES 3 /* disable merge attempts */
579#define QUEUE_FLAG_SAME_COMP 6 /* complete on same CPU-group */ 579#define QUEUE_FLAG_SAME_COMP 4 /* complete on same CPU-group */
580#define QUEUE_FLAG_FAIL_IO 7 /* fake timeout */ 580#define QUEUE_FLAG_FAIL_IO 5 /* fake timeout */
581#define QUEUE_FLAG_NONROT 9 /* non-rotational device (SSD) */ 581#define QUEUE_FLAG_NONROT 6 /* non-rotational device (SSD) */
582#define QUEUE_FLAG_VIRT QUEUE_FLAG_NONROT /* paravirt device */ 582#define QUEUE_FLAG_VIRT QUEUE_FLAG_NONROT /* paravirt device */
583#define QUEUE_FLAG_IO_STAT 10 /* do disk/partitions IO accounting */ 583#define QUEUE_FLAG_IO_STAT 7 /* do disk/partitions IO accounting */
584#define QUEUE_FLAG_DISCARD 11 /* supports DISCARD */ 584#define QUEUE_FLAG_DISCARD 8 /* supports DISCARD */
585#define QUEUE_FLAG_NOXMERGES 12 /* No extended merges */ 585#define QUEUE_FLAG_NOXMERGES 9 /* No extended merges */
586#define QUEUE_FLAG_ADD_RANDOM 13 /* Contributes to random pool */ 586#define QUEUE_FLAG_ADD_RANDOM 10 /* Contributes to random pool */
587#define QUEUE_FLAG_SECERASE 14 /* supports secure erase */ 587#define QUEUE_FLAG_SECERASE 11 /* supports secure erase */
588#define QUEUE_FLAG_SAME_FORCE 15 /* force complete on same CPU */ 588#define QUEUE_FLAG_SAME_FORCE 12 /* force complete on same CPU */
589#define QUEUE_FLAG_DEAD 16 /* queue tear-down finished */ 589#define QUEUE_FLAG_DEAD 13 /* queue tear-down finished */
590#define QUEUE_FLAG_INIT_DONE 17 /* queue is initialized */ 590#define QUEUE_FLAG_INIT_DONE 14 /* queue is initialized */
591#define QUEUE_FLAG_NO_SG_MERGE 18 /* don't attempt to merge SG segments*/ 591#define QUEUE_FLAG_NO_SG_MERGE 15 /* don't attempt to merge SG segments*/
592#define QUEUE_FLAG_POLL 19 /* IO polling enabled if set */ 592#define QUEUE_FLAG_POLL 16 /* IO polling enabled if set */
593#define QUEUE_FLAG_WC 20 /* Write back caching */ 593#define QUEUE_FLAG_WC 17 /* Write back caching */
594#define QUEUE_FLAG_FUA 21 /* device supports FUA writes */ 594#define QUEUE_FLAG_FUA 18 /* device supports FUA writes */
595#define QUEUE_FLAG_DAX 23 /* device supports DAX */ 595#define QUEUE_FLAG_DAX 19 /* device supports DAX */
596#define QUEUE_FLAG_STATS 24 /* track IO start and completion times */ 596#define QUEUE_FLAG_STATS 20 /* track IO start and completion times */
597#define QUEUE_FLAG_POLL_STATS 25 /* collecting stats for hybrid polling */ 597#define QUEUE_FLAG_POLL_STATS 21 /* collecting stats for hybrid polling */
598#define QUEUE_FLAG_REGISTERED 26 /* queue has been registered to a disk */ 598#define QUEUE_FLAG_REGISTERED 22 /* queue has been registered to a disk */
599#define QUEUE_FLAG_SCSI_PASSTHROUGH 27 /* queue supports SCSI commands */ 599#define QUEUE_FLAG_SCSI_PASSTHROUGH 23 /* queue supports SCSI commands */
600#define QUEUE_FLAG_QUIESCED 28 /* queue has been quiesced */ 600#define QUEUE_FLAG_QUIESCED 24 /* queue has been quiesced */
601#define QUEUE_FLAG_PCI_P2PDMA 29 /* device supports PCI p2p requests */ 601#define QUEUE_FLAG_PCI_P2PDMA 25 /* device supports PCI p2p requests */
602
603#define QUEUE_FLAG_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \
604 (1 << QUEUE_FLAG_SAME_COMP) | \
605 (1 << QUEUE_FLAG_ADD_RANDOM))
606 602
607#define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \ 603#define QUEUE_FLAG_MQ_DEFAULT ((1 << QUEUE_FLAG_IO_STAT) | \
608 (1 << QUEUE_FLAG_SAME_COMP)) 604 (1 << QUEUE_FLAG_SAME_COMP))