Export scsi_device_from_queue for use with pktcdvd and use that instead of the otherwise unused QUEUE_FLAG_SCSI_PASSTHROUGH queue flag.
Showing the changes to include/linux/blkdev.h (1 of 5 files). Show all
Unified · Split
| @@ -357,7 +357,6 @@ struct request_queue { · 356 unmodified lines | |||
| 357 | #define QUEUE_FLAG_STATS 20 /* track IO start and completion times */ | 357 | #define QUEUE_FLAG_STATS 20 /* track IO start and completion times */ |
| 358 | #define QUEUE_FLAG_POLL_STATS 21 /* collecting stats for hybrid polling */ | 358 | #define QUEUE_FLAG_POLL_STATS 21 /* collecting stats for hybrid polling */ |
| 359 | #define QUEUE_FLAG_REGISTERED 22 /* queue has been registered to a disk */ | 359 | #define QUEUE_FLAG_REGISTERED 22 /* queue has been registered to a disk */ |
| 360 | #define QUEUE_FLAG_SCSI_PASSTHROUGH 23 /* queue supports SCSI commands */ | ||
| 361 | #define QUEUE_FLAG_QUIESCED 24 /* queue has been quiesced */ | 360 | #define QUEUE_FLAG_QUIESCED 24 /* queue has been quiesced */ |
| 362 | #define QUEUE_FLAG_PCI_P2PDMA 25 /* device supports PCI p2p requests */ | 361 | #define QUEUE_FLAG_PCI_P2PDMA 25 /* device supports PCI p2p requests */ |
| 363 | #define QUEUE_FLAG_ZONE_RESETALL 26 /* supports Zone Reset All */ | 362 | #define QUEUE_FLAG_ZONE_RESETALL 26 /* supports Zone Reset All */ |
| @@ -391,8 +390,6 @@ bool blk_queue_flag_test_and_set(unsigned int flag, struct request_queue *q); · 27 unmodified lines | |||
| 391 | #define blk_queue_secure_erase(q) \ | 390 | #define blk_queue_secure_erase(q) \ |
| 392 | (test_bit(QUEUE_FLAG_SECERASE, &(q)->queue_flags)) | 391 | (test_bit(QUEUE_FLAG_SECERASE, &(q)->queue_flags)) |
| 393 | #define blk_queue_dax(q) test_bit(QUEUE_FLAG_DAX, &(q)->queue_flags) | 392 | #define blk_queue_dax(q) test_bit(QUEUE_FLAG_DAX, &(q)->queue_flags) |
| 394 | #define blk_queue_scsi_passthrough(q) \ | ||
| 395 | test_bit(QUEUE_FLAG_SCSI_PASSTHROUGH, &(q)->queue_flags) | ||
| 396 | #define blk_queue_pci_p2pdma(q) \ | 393 | #define blk_queue_pci_p2pdma(q) \ |
| 397 | test_bit(QUEUE_FLAG_PCI_P2PDMA, &(q)->queue_flags) | 394 | test_bit(QUEUE_FLAG_PCI_P2PDMA, &(q)->queue_flags) |
| 398 | #ifdef CONFIG_BLK_RQ_ALLOC_TIME | 395 | #ifdef CONFIG_BLK_RQ_ALLOC_TIME |