History

block: add a helper function to merge the segments

This patch adds a helper function whether a queue can merge the segments by the DMA MAP layer (e.g. via IOMMU).

Yoshihiro Shimoda committed 7 years ago

Commit 45147fb1 parent db914272 files · +25 −0Browse files

Showing the changes to include/linux/blkdev.h (1 of 2 files). Show all

Unified · Split

include/linux/blkdev.h+2−0
@@ -1085,6 +1085,8 @@ extern void blk_queue_dma_alignment(struct request_queue *, int); · 1084 unmodified lines
10851085 extern void blk_queue_update_dma_alignment(struct request_queue *, int);
10861086 extern void blk_queue_rq_timeout(struct request_queue *, unsigned int);
10871087 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);
10881090
10891091 /*
10901092 * Number of physical segments as sent to the device.