This patch adds a helper function whether a queue can merge the segments by the DMA MAP layer (e.g. via IOMMU).
Showing the changes to include/linux/blkdev.h (1 of 2 files). Show all
Unified · Split
| @@ -1085,6 +1085,8 @@ extern void blk_queue_dma_alignment(struct request_queue *, int); · 1084 unmodified lines | |||
| 1085 | extern void blk_queue_update_dma_alignment(struct request_queue *, int); | 1085 | extern void blk_queue_update_dma_alignment(struct request_queue *, int); |
| 1086 | extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); | 1086 | extern void blk_queue_rq_timeout(struct request_queue *, unsigned int); |
| 1087 | extern void blk_queue_write_cache(struct request_queue *q, bool enabled, bool fua); | 1087 | extern void blk_queue_write_cache(struct request_queue *q, bool enabled, bool fua); |
| 1088 | extern bool blk_queue_can_use_dma_map_merging(struct request_queue *q, | ||
| 1089 | struct device *dev); | ||
| 1088 | 1090 | ||
| 1089 | /* | 1091 | /* |
| 1090 | * Number of physical segments as sent to the device. | 1092 | * Number of physical segments as sent to the device. |