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
1085extern void blk_queue_update_dma_alignment(struct request_queue *, int);1085extern void blk_queue_update_dma_alignment(struct request_queue *, int);
1086extern void blk_queue_rq_timeout(struct request_queue *, unsigned int);1086extern void blk_queue_rq_timeout(struct request_queue *, unsigned int);
1087extern void blk_queue_write_cache(struct request_queue *q, bool enabled, bool fua);1087extern void blk_queue_write_cache(struct request_queue *q, bool enabled, bool fua);
1088extern 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.